编译程序遇到问题  relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;

发现编译的程序引用的一个库(.a文件)是直接用./configure 编译的, 64位机器不能直接./configure 进行配置,需要采用如下方式

CFLAGS="-O3 -fPIC" ./configure

make

make install

转载于:https://www.cnblogs.com/luoyinjie/p/7219344.html

编译程序遇到问题 relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;...相关推荐

  1. relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recom

    原因:某些版本的gcc默认没加-fPIC参数 解决办法:保证你编译.o文件的时候,都加上-fPIC,这样你才能编译出动态库来. 原因:某些版本的gcc默认没加-fPIC参数 解决办法:保证你编译.o文 ...

  2. 编译动态库时报错relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile

    这个是由于编译单个c文件时没有指定-fPIC标志,而链接的时候又指定了-fPIC标志,那么最终链接时指定这个就会报错. 只需要在编译C文件时也加上这个选项就可以了. CFLAGS += -fPIC

  3. 报错解决:usr/bin/ld: output.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when maki

    晚上在用g++的时候报错如下: -> # g++ output.o -o test /usr/bin/ld: output.o: relocation R_X86_64_32 against ` ...

  4. 全网首发:relocation R_X86_64_PC32 against symbol can not be used when making a shared object recompile

    错误 /usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol ` ...

  5. relocation R_X86_64_32S against `.data‘ can not be used when making a PIE object; recompile with -fP

    linux下编译汇编语言报错: relocation R_X86_64_32S against `.data' can not be used when making a PIE object; re ...

  6. Linux:编译动态库时遇到的错误relocation R_X86_64_32 against `a local symbol'

    编译动态库时遇到如下错误: ... ... relocation R_X86_64_32 against `a local symbol' can not be used when making a ...

  7. 理解Keil编译器中编译程序时出现的Code、RO-data、RW-data和ZI-data的含义

    ** 1:Code.RO-data.RW-data和ZI-data ** STM32单片机在keil开发环境下编译完成后,会显示: Program Size: Code=xxxx RO-data=xx ...

  8. 编译动态库时遇到relocation R_X86_64_32 against a local symbol的错误

    https://blog.csdn.net/qq_42279940/article/details/85037454 https://blog.csdn.net/hanyulongseucas/art ...

  9. ubuntu16编译opencv3.1出现/usr/bin/ld: /usr/local/lib/libavcodec.a(allcodecs.o): relocation R_X86_64_32 a

    问题如下 解决方法: 1.下载FFmpeg ;    http://www.ffmpeg.org/download.html#releases 2.编译步骤如下 ./configure --enabl ...

最新文章

  1. Hive作业优化总结
  2. Linux下配置MySQL需要注意的几点
  3. 使用命令批量修改文件的后缀名称
  4. [蓝桥杯][算法训练VIP]旅行家的预算(单调栈+贪心)
  5. 对于一个IE8兼容性问题的反思
  6. 【MySQL】事务隔离级别
  7. python写出函数调用关系_函数递归调用: 调用者 与 被调用者之间的四种数据传递关系...
  8. zk的数据一致性问题
  9. Java判断某年是不是闰年
  10. [转] 面向对象编程 - 获取对象信息
  11. 在线运行java代码并得到结果_Java代码是如何运行的?
  12. 以太坊系列之十四: solidity特殊函数
  13. 学前端需要什么基础知识(前端需要掌握什么 )
  14. WPF+VB.net制作桌面股票小助手
  15. 编译内核报错——*** 没有规则可制作目标“debian/canonical-revoked-certs.pem”,由“certs/x509_revocation_list” 需求。 停止。
  16. 语雀文章导入CSDN
  17. lineageos没有信号解决方法
  18. vue实现好看的相册、图片网站
  19. 如何给网站添加IE浏览器升级提示
  20. FFmpeg内存管理

热门文章

  1. 关于easyui combobox下拉框实现多选框的实现
  2. mysql 视图调用存储过程,是否可以在视图中调用存储过程?
  3. 实用供热空调设计手册第三版_【最新资讯】执行主编周敏赴北京、天津进行手册编制工作会谈...
  4. new运算符与malloc函数区别
  5. android 录音机 apk,实时录音机
  6. python imagedraw line_修复PIL.ImageDraw.Draw.宽线条线条线条
  7. TCP/IP参考模型入门
  8. 使用加密签名时遇到的一个问题
  9. Spring Cloud Spring Boot mybatis 企业分布式微服务云(五)服务消费(Feign)【Dalston版】...
  10. FastJSON应用前测试