relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recom
2017-06-05 15:13
851 查看
原因:某些版本的gcc默认没加-fPIC参数
解决办法:保证你编译.o文件的时候,都加上-fPIC,这样你才能编译出动态库来。
原因:某些版本的gcc默认没加-fPIC参数
解决办法:保证你编译.o文件的时候,都加上-fPIC,这样你才能编译出动态库来。
相关文章推荐
- linux 生成动态库时提示relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- 关于/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解决办法
- 编译程序遇到问题 relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- 学习笔记:relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- relocation R_X86_64_32 against XXXXX can not be used when making a shared object;recompile with -fPI
- libavcodec/mqc.o: relocation r_x86_64_32 against `.rodata' can not be used when making a shared obje
- 编译动态库出现问题relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object
- CentOS-6.3 编译erlang-otp 17.0 报relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC错误
- jsoncpp relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; ……
- relocation R_X86_64_32S against `_nc_globals' can not be used when making a shared object; recompile
- relocation R_X86_64_32S against `a local symbol’ can not be used when making a shared object; recomp
- LibXML Compile Error: relocation R_X86_64_32 against `a local symbol' can not be used when making a
- .libs/alloc.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared
- relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared objec
- gcc报错 can not be used when making a shared object; recompile with -fPIC
- can not be used when making a shared object; recompile with -fPIC
- 加入ffmpeg静态库的错误can not be used when making a shared object; recompile with -fPIC
- 交叉编译出现a local symbol' can not be used when making a shared object的解决方法
- can not be used when making a shared object; recompile with -fPIC