Lua-bindings link错误

引擎3.9 系统OS X 10.11.2 NDK r9b 64位
根据官方文档 http://www.cocos2d-x.org/wiki/Binding_Custom_Class_To_Lua_Runtime
导出c++文件给lua调用 我用的是模拟器 6s plus (其他模拟器也有问题)

前边的编写ini文件 生成文件,添加搜索路径都OK,

代码添加在AppDelegate.cpp文件中
lua_getglobal(L, “_G”);
register_all_cocos2dx_custom(L);
lua_pop(L, 1);

编译也通过,但是在link的时候会报错,错误如下

“register_all_cocos2dx_custom(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)

一样的情况:14:
cocos 3.10,ndk_r10e,