需要在编译生成.o文件时也加入-fPIC 而不单单只是在编译生成.so时加入-fPIC
编译动态库提示relocation against can not be used when making a shared object; recompile with -fPIC可能的一种解
最新推荐文章于 2024-01-08 15:07:18 发布
需要在编译生成.o文件时也加入-fPIC 而不单单只是在编译生成.so时加入-fPIC