Undefined symbols for architecture i386: "register_all_MyClass(lua_State*)"

在做lua绑定的时候遇到的问题,记录一下。

找不到register_all_MyClass这个方法,但是都能跳转。

我把搜索路径也加上了,但是还是不行。

编译的次数多了,发现一直是76个文件,然后就在cocos2d_lua_bindings.xcodeproj

targets->bulid phases -> Complie Sources

搜索lua_MyClass_auto.cpp并没有发现,然后添加进去就可以了。


猜你喜欢

转载自blog.csdn.net/skillart/article/details/70179535