- 本帖最后由 樱木vs鸣人 于 2013-5-7 16:43 编辑 *
麻烦问下,当我升级到2.1.3的时,在win32平台下,会出现链接错误 错误
CCActionInterval* action_fadein = CCFadeIn::create(0.5f);
CCActionInterval* action_fade0ut = CCFadeOut::create(0.5f);
CCActionInterval* action_move_1 = CCMoveBy::create(1.0f, ccp(100, 0));
CCActionInterval* action_move_2 = CCMoveBy::create(1.0f, ccp(s.width - 150, 0));
CCActionInterval* action_move_3 = CCMoveBy::create(1.0f, ccp(150, 0));
CCActionInterval* fadein_move = CCSpawn::create((CCActionInterval*)action_fadein, action_move_1, NULL);
CCActionInterval* fadeout_move = CCSpawn::create((CCActionInterval*)action_fade0ut, action_move_3, NULL);
CCActionInterval* action1 = (CCActionInterval*)CCCallFunc::create(this, callfunc_selector(PopupScene::sprLineCallBack));
CCActionInterval* action2 = CCSequence::create((CCActionInterval*)fadein_move, action_move_2, fadeout_move, NULL);
CCActionInterval* action3 = CCSequence::create(action2, action1, NULL);
===================================================
681 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static class cocos2d::CCSequence * __cdecl cocos2d::CCSequence::create(class cocos2d::CCFiniteTimeAction *,...)" (__imp_?create@CCSequence@cocos2d@@SAPAV12@PAVCCFiniteTimeAction@2@ZZ) E:workspaceHIDD runkranchescocos2dxHIDDHIDDproj.win32PopupScene.obj
错误 646 error LNK2001: 无法解析的外部符号 “__declspec(dllimport) public: virtual bool __thiscall cocos2d::CCLayer::init(void)” (_imp?init@CCLayer@cocos2d@@UAE_NXZ) E:workspaceHIDD runkranchescocos2dxHIDDHIDDproj.win32LoadingLayer.obj
错误 465 error LNK2001: 无法解析的外部符号 “public: virtual bool __thiscall cocos2d::CCLayer::init(void)” (?init@CCLayer@cocos2d@@UAE_NXZ) E:workspaceHIDD runkranchescocos2dxHIDDHIDDproj.win32CCScrollLayer.obj
麻烦问下大家怎么解决的啊???我试过了 google ,bing ,baidu.换了很多关键词,还是搜索不到答案。。