Open
Description
creator::CreatorReader* reader = creator::CreatorReader::createWithFilename("creator/scenes/MainScene.ccreator");
reader->setup();
Scene* scene = reader->getSceneGraph();
Director::getInstance()->runWithScene(scene);
I try to add the codes above to a scene class, but it can't compile. This is the information of error below.
错误 LNK2019 无法解析的外部符号 "public: static class creator::CreatorReader * __cdecl creator::CreatorReader::createWithFilename(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?createWithFilename@CreatorReader@creator@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z),该符号在函数 "public: void __thiscall HelloWorld::menuCloseCallback(class cocos2d::Ref *)" (?menuCloseCallback@HelloWorld@@QAEXPAVRef@cocos2d@@@z) 中被引用 FireChess C:\Users\valleys\Desktop\Cocos\FireChess\win32-build\HelloWorldScene.obj
Metadata
Metadata
Assignees
Labels
No labels