cocos2dx静态库链接识别

今天在调试cocos2dx的extensions库时总是报错:

cocos2d-2.1beta3-x-2.1.0/extensions/proj.blackberry/Simulator/../../GUI/CCScrollView/CCScrollView.cpp:298: undefined reference to `cocos2d::CCActionTween::create(float, char const*, float, float)'

查看对应路径下libextensions.a是存在的。百思不得其解,于是google之,得到正解:

http://www.cnblogs.com/wujianlundao/archive/2012/06/06/2538125.html

变化静态库的顺序将libextensions.a放最前面,或者按上面文章方法直接添加-Xlinker编译参数后问题解决。

相关推荐