Is this the correct way of find the cocos2dx version I am using?

Is there a way for me to find out which cocos2dx version I am using ?
Is this the correct way of finding out?

> cocos --version
1.5

Is this the correct way ? Does this mean I am using 1.5 ?

that’s the cocos console version. Look for the cocos2d.h header file, that will have a define at the top.

Though silly :wink:

But if we could have something for this, so that we could get from the terminal also
that would be good.

As COCOS_CONSOLE_ROOT is now auto configured after running setup.py
and it takes the path from inside the cocos SDK, so may be it would be easy to track the current verison of cocos to console also.

Too much thinking… ha ha… :smile: