解决方法:
选中工程右键->属性(properties)->c/c++Build -> GCC C Compiler -> Command ->gcc -fPIC。
问题解决!!
eclipse编译动态链接库文件报错 relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
原文地址:https://www.cnblogs.com/GuanghuiLiu/p/9308867.html
时间: 2024-11-08 22:56:48