2014年2月18日
摘要: 1. 今天在centos6.4系统上编译so,当so引用其他so或者 .a 静态库时, 会出现如下错误(以前未遇到过,与编译器相关,有的编译器编译时会自动将fPIC选项加上):/usr/bin/ld: /home/gavin/local/json/lib/libjson.a(json_object.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC解决: 重新编译第三方库, 在configure文件中找到相关CPPFLA 阅读全文
posted @ 2014-02-18 15:10 行健 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1. 今天在centos6.4系统上编译so,当so引用其他so或者 .a 静态库时, 会出现如下错误(以前未遇到过,与编译器相关,有的编译器编译时会自动将fPIC选项加上):/usr/bin/ld: /home/gavin/local/json/lib/libjson.a(json_object.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC解决: 重新编译第三方库, 在configure文件中找到相关CPPFLA 阅读全文
posted @ 2014-02-18 15:09 行健 阅读(86) 评论(0) 推荐(0) 编辑