原文: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