[root@iZ23yjelafgZ home]# php test.php
PHP Warning: PHP Startup: Unable to load dynamic library '/home/bdVideo.so' - /home/bdVideo.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE in Unknown on line 0
As my jni library is managed by autotools, after adding "-Wl,--gc-sections -fPIC -shared -lstdc++" to AM_LDFLAGS of Makefile.am
problems sloves. libstdc++ might not necessary if code is compiled by a c++ compiler (e.g. g++).
I add -Wl,--gc-sections -fPIC -shared -lstdc++ to LDFLAGS

266

被折叠的 条评论
为什么被折叠?



