Open danny8002 opened 10 years ago
用vse2013打开CrossApp\samples\multi-platform-cpp\proj.win32\HelloCpp.sln,编译会报错:
Error 59 error C2440: 'type cast' : cannot convert from 'bool (__thiscall cocos2d::CANavigationBar::* )(cocos2d::CAControl *,cocos2d::CCPoint)' to 'cocos2d::SEL_CAControl' c:\users\zhiw\documents\github\crossapp\cocos2dx\ui_controller\cabar.cpp 189 1 libcocos2d
CABar.cpp #line198 行。
VS2012 编译时也会报这个错
这是个0.1.8的bug,将CABar文件中 的 bool goBack(CAControl* btn, CCPoint point);函数的返回值改为void 即可
下个版本可以修改一下
用vse2013打开CrossApp\samples\multi-platform-cpp\proj.win32\HelloCpp.sln,编译会报错:
Error 59 error C2440: 'type cast' : cannot convert from 'bool (__thiscall cocos2d::CANavigationBar::* )(cocos2d::CAControl *,cocos2d::CCPoint)' to 'cocos2d::SEL_CAControl' c:\users\zhiw\documents\github\crossapp\cocos2dx\ui_controller\cabar.cpp 189 1 libcocos2d
CABar.cpp #line198 行。