cocos2dx 2.x.x 在testcpp里边使用自己新加的类对象,发生连接错误,后面我包含cpp文件才可以执行?为什么?
AppDelegate.obj : error LNK2019: 无法解析的外部符号 “unsigned long __cdecl cocos2d::ccNextPOT(unsigned long)” (?ccNextPOT@cocos2d@@YAKK@Z),该符号在函数 “private: void __thiscall cocos2d::CCTextureWas::getRelativeNPotSize(unsigned char * *,class std::vector<unsigned int,class std::allocator > const &,unsigned int &,unsigned int &,bool &)” (?getRelativeNPotSize@CCTextureWas@cocos2d@@AAEXPAPAEABV?$vector@IV?$allocator@I@std@@@std@@AAI2AA_N@Z) 中被引用
报错信息。