在Cocos2d-x中排除项目时出现这些错误

时间:2014-08-22 09:10:31

标签: android eclipse cocos2d-x

我已经在我的D:/驱动器和NDK中安装了Cocos2d-x-2.2.5,ADT,C:/驱动器中的Cygwin也设置了ANDROID_NDK_PATH的环境:C:\ Users \ d \ Documents \ Android \ ndk \ android-ndk-r8d,COCOS2DX_ROOT:D:\ Cocos2d-X \ cocos2d-x-3.2,NDK_ROOT:C:\ android-ndk-r10,cygwin PATH:C:\ cygwin \ bin

我正在Cocos2d-x中创建一个项目,并通过 cygwin 上的./build_native.sh命令执行此错误。

D:/Cocos2D-x/cocos2d-x-2.2.5/projects/CocosGame/proj.android/../../../extensions/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.cpp:54:9: error: 'transform' is not a member of 'std'
/cygdrive/c/android-ndk-r10/build/core/build-binary.mk:449: recipe for target 'obj/local/armeabi/objs/cocos_extension_static/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.o' failed
make: *** [obj/local/armeabi/objs/cocos_extension_static/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.o] Error 1
make: Leaving directory '/cygdrive/d/Cocos2D-x/cocos2d-x-2.2.5/projects/CocosGame/proj.android'

1 个答案:

答案 0 :(得分:3)

#include <algorithm>添加到扩展程序\ CocoStudio \ Reader \ WidgetReader \ LabelReader \ LabelReader.cpp