lua自定义类相关问题

将自定义类导出以后,生成新的LuaCocos2d.cpp,但是这个是在库里面的。。
现在想将该新生成的LuaCocos2d.cpp加到自己当前工程下,这样就可以保证库不变,自定义类只对当前工程有效。。。
但是添加以后,编译时出现
undefined reference to ‘lua_pushstring’
undefined reference to ‘lua_pushstring’