环境10.10 xcode6.1 ndk r9b
我按照教程,从一个最简单的c++自定义文件(RequestManager)用bindings generator开始绑定。
一路生成桥接文件hpp跟cpp都没问题
但是将桥接文件放入lua_bindings.xcodeproj下的auto文件夹内时,却报错连接错误~~~
我的自定义文件RequestManager是放在runtime-src/Classes文件夹下的
而且lua_binding.xcodeproj的User Header Search Path中也添加了$(SRCROOT)/…/…/…/…/runtime-src/Classes 路径
但是编译就是编译不过去。。。
在线求解~~~~~
--------报错---------
Undefined symbols for architecture x86_64:
“register_all_RequestManager(lua_State*)”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)