问题:
新的cocos2d-x 2.2.5 在使用Eclipse的安卓NDK 9 的编译器进行编译的时候,
问题提示如下:
[armeabi] Compile++ thumb: cocos_extension_static <= LabelReader.cpp
D:\work\cocos2d-x-2.2.5/extensions/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.cpp: In member function ‘virtual void cocos2d::extension::LabelReader::setPropsFromJsonDictionary(cocos2d::ui::Widget*, const Value&)‘:
D:\work\cocos2d-x-2.2.5/extensions/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.cpp:54:9: error: ‘transform‘ is not a member of ‘std‘
解决方法:
LabelReader.cpp中导入头文件
#include <algorithm>
时间: 2024-12-10 16:24:12