Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

错误 LNK2019 无法解析的外部符号 #190

Open
SlientValley opened this issue Aug 2, 2020 · 0 comments
Open

错误 LNK2019 无法解析的外部符号 #190

SlientValley opened this issue Aug 2, 2020 · 0 comments

Comments

@SlientValley
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant