LabelReader.cpp:54:9: error: 'transform' is not a member of 'std'

Cocos2dx 2.2.5使用Eclipse编译时出现以下错误

[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

你可能感兴趣的:(Cocos2dx,Cocos2dx,2.2.5,eclipse,LabelReader)