eclipse编译动态链接库文件报错 relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC

时间:2018-07-14 11:47:04   收藏:0   阅读:1015

解决方法:

 选中工程右键->属性(properties)->c/c++Build -> GCC C Compiler -> Command ->gcc -fPIC。

问题解决!!

技术分享图片

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!