error LNK2019: 无法解析的外部符号 "public: static class cocos2d::CCLuaEngine * __cdecl cocos2d::CCLuaEngine::engine(void)" ([email=?engine@CCLuaEngine@cocos2d@@SAPAV12@XZ]?engine@CCLuaEngine@cocos2d@@SAPAV12@XZ[/email]),该符号在函数 "public: __thiscall GameLayer::GameLayer(void)" ([email=??0GameLayer@@QAE@XZ]??0GameLayer@@QAE@XZ[/email]) 中被引用
解决:
因为LUA中包含C文件,所以编译的时候和CPP不同,要把cocos2dx_support里面的这些文件通过项目包含进来再可以,直接引用就会出现这个问题,