编译程序遇到问题 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;
发现编译的程序引用的一个库(.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;...相关推荐
- relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recom
原因:某些版本的gcc默认没加-fPIC参数 解决办法:保证你编译.o文件的时候,都加上-fPIC,这样你才能编译出动态库来. 原因:某些版本的gcc默认没加-fPIC参数 解决办法:保证你编译.o文 ...
- 编译动态库时报错relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile
这个是由于编译单个c文件时没有指定-fPIC标志,而链接的时候又指定了-fPIC标志,那么最终链接时指定这个就会报错. 只需要在编译C文件时也加上这个选项就可以了. CFLAGS += -fPIC
- 报错解决: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 ` ...
- 全网首发: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 ` ...
- 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 ...
- 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 ...
- 理解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 ...
- 编译动态库时遇到relocation R_X86_64_32 against a local symbol的错误
https://blog.csdn.net/qq_42279940/article/details/85037454 https://blog.csdn.net/hanyulongseucas/art ...
- 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 ...
最新文章
- Hive作业优化总结
- Linux下配置MySQL需要注意的几点
- 使用命令批量修改文件的后缀名称
- [蓝桥杯][算法训练VIP]旅行家的预算(单调栈+贪心)
- 对于一个IE8兼容性问题的反思
- 【MySQL】事务隔离级别
- python写出函数调用关系_函数递归调用: 调用者 与 被调用者之间的四种数据传递关系...
- zk的数据一致性问题
- Java判断某年是不是闰年
- [转] 面向对象编程 - 获取对象信息
- 在线运行java代码并得到结果_Java代码是如何运行的?
- 以太坊系列之十四: solidity特殊函数
- 学前端需要什么基础知识(前端需要掌握什么 )
- WPF+VB.net制作桌面股票小助手
- 编译内核报错——*** 没有规则可制作目标“debian/canonical-revoked-certs.pem”,由“certs/x509_revocation_list” 需求。 停止。
- 语雀文章导入CSDN
- lineageos没有信号解决方法
- vue实现好看的相册、图片网站
- 如何给网站添加IE浏览器升级提示
- FFmpeg内存管理
热门文章
- 关于easyui combobox下拉框实现多选框的实现
- mysql 视图调用存储过程,是否可以在视图中调用存储过程?
- 实用供热空调设计手册第三版_【最新资讯】执行主编周敏赴北京、天津进行手册编制工作会谈...
- new运算符与malloc函数区别
- android 录音机 apk,实时录音机
- python imagedraw line_修复PIL.ImageDraw.Draw.宽线条线条线条
- TCP/IP参考模型入门
- 使用加密签名时遇到的一个问题
- Spring Cloud Spring Boot mybatis 企业分布式微服务云(五)服务消费(Feign)【Dalston版】...
- FastJSON应用前测试