cocos2d-x v2.2.1 编译 CocoStudio DemoGame
PhysicalWorld.cpp
bullet->setB2Body(body);
bullet->setPTMRatio(PT_RATIO);
编译时候报错。。
PhysicalWorld.obj : error LNK2019: unresolved external symbol “public: void __thiscall cocos2d::extension::CCPhysicsSprite::setPTMRatio(float)” (?setPTMRatio@CCPhysicsSprite@extension@cocos2d@@QAEXM@Z) referenced in function “private: void __thiscall PhysicalWorld::createBullet(class cocos2d::CCPoint,class cocos2d::CCActionInterval *)” (?createBullet@PhysicalWorld@@AAEXVCCPoint@cocos2d@@PAVCCActionInterval@3@@Z)
PhysicalWorld.obj : error LNK2019: unresolved external symbol “public: void __thiscall cocos2d::extension::CCPhysicsSprite::setB2Body(class b2Body *)” (?setB2Body@CCPhysicsSprite@extension@cocos2d@@QAEXPAVb2Body@@@Z) referenced in function “private: void __thiscall PhysicalWorld::createBullet(class cocos2d::CCPoint,class cocos2d::CCActionInterval *)” (?createBullet@PhysicalWorld@@AAEXVCCPoint@cocos2d@@PAVCCActionInterval@3@@Z)
这个问题怎么解决呢?