Cocos2d-x在Eclipse自动补全

项目Properties -> C/C++ General -> Paths and Symbols -> Includes

加入以下目录:

$NDK_ROOT/platforms/android-14/arch-arm/usr/include
$COCOS2D_ROOT/cocos2dx
$COCOS2D_ROOT/cocos2dx/include
$COCOS2D_ROO/CocosDenshion/include
$COCOS2D_ROOT/cocos2dx/platform/android

其中NDK_ROOT为NDK根目录,COCOS2D_ROOT为Cocos2d-x安装目录,请根据实际情况自行更改。

这样开发是就方便了很多,自动补全,高亮显示通通都有了。


//~End~

你可能感兴趣的:(cocos2d-x)