各位大神,小弟刚刚接触cocos2dx,今天编译了一个代码,总是报错,貌似是库函数没有链接,就是不知道该怎么改,希望大神帮帮忙,谢谢了!
错误警告在下面:
图看不清,把错误部分贴出:
HelloWorldScene.obj : error LNK2019: 无法解析的外部符号 “public: static class cocos2d::Scene * __cdecl HomeMenuLayer::createScene(void)” (?createScene HomeMenuLayer SAPAVScene cocos2d XZ),该符号在函数 “private: void __thiscall HelloWorld::delayCall(float)” (?delayCall HelloWorld AAEXM Z) 中被引用
2>D:\cocos2d-x-3.12\projects\LostRoutes\proj.win32\Debug.win32\LostRoutes.exe : fatal error LNK1120: 1 个无法解析的外部命令
========== 生成: 成功 1 个,失败 1 个,最新 4 个,跳过 0 个 ==========
中间有些@用空格表示了