9miao / CrossApp

Cross-Platform Mobile APP Development Engine
MIT License
835 stars 422 forks source link

Code Error #3

Open danny8002 opened 10 years ago

danny8002 commented 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 行。

danny8002 commented 10 years ago

VS2012 编译时也会报这个错

9miao commented 10 years ago

这是个0.1.8的bug,将CABar文件中 的 bool goBack(CAControl* btn, CCPoint point);函数的返回值改为void 即可

uxqclm commented 10 years ago

下个版本可以修改一下