原文:gcc报错 can not be used when making a shared object; recompile with -fPIC

使用google protobuf时,出现错误 usr bin ld: usr local lib libprotobuf.a message lite.o : relocation R X S against ZTVN google protobuf MessageLiteE can not be used when making a shared object recompile with f ...

2015-12-29 20:13 0 8932 推荐指数:

查看详情

关于/usr/local/lib/libz.a(zutil.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

具体报错截图如下: 解决方法: 题外话,我对makefill cmake也是一窍不通因此本人也是不想去积极的解决这个问题,但是当你求助无缘的时候你才会静心去思考。读到这句话的时候也许你已经发现了问题所在了 问题所在: zlib设置问题 解决方案: 1.最好重新安装 ...

Sat Aug 06 22:39:00 CST 2016 0 2013
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM