Hello, I’m making a native extension but unfortunately the build server keeps returning an error as below:
Undefined symbols for architecture armv7:
"_platform_setup", referenced from:
__Z4initP9lua_State in lib20ca6ba8-02be-4dcb-ac22-031bca393893.a(extension_ios.cpp_1.o)
I created an iOS static library named libplatform.a and copied it to myextension/lib/ios/libplatform.a. I declared a C style function in it as below:
extern "C" void platform_setup(void*);
And called it in the native extension but I got the build error. The static library works correctly with an iOS test app in which the Objective C source calls platform_setup() by linking the static library. Am I missing something for build?
Thanks.