Add Lua to MyProject tutorial problems

Add Lua to MyProject tutorial problems
0.0 0


hi, everyone !
I have come across a problem like this :

HelperScene.obj : error LNK2028: 无法解析的标记(0A00053E) “public: static class cocos2d::CCLuaEngine * cdecl cocos2d::CCLuaEngine::engine" ,该标记在函数 "public: virtual boolthiscall HelperScene::init(void)” (?init@HelperScene@$$FUAE_NXZ) 中被引用 2>HelperScene.obj : error LNK2019: 无法解析的外部符号 "public: static class cocos2d::CCLuaEngine * __cdecl cocos2d::CCLuaEngine::engine(void)" (?engineCCLuaEngine@cocos2d@$$FSAPAV12XZ),该符号在函数 “public: virtual bool __thiscall HelperScene::init(void)” (?init@HelperScene@@$$FUAE_NXZ) 中被引用
2>D:2d_Workspace\cocos2d\Release.win32\BombMan.win32.exe : fatal error LNK1120: 2 个无法解析的外部命令.

this is my function :

#include “HelperScene.h”
#include “CCLuaEngine.h”

bool HelperScene::init(){
CCScriptEngineProtocol* pEngine = CCLuaEngine::engine();
return true;

here is the detail information: I add a method called init(); I want to add luaEngine to my project . I involved “CCLuaEngine.h” file, and when I wrote my program like pasted before. the program gave an error like that. I really appreciate it if some one helped me to solve this error ,thanks in advance!
PS: the “CCLuaEngine.h” file could be found!