码迷,mamicode.com
首页 > 系统相关 > 详细

异常之交叉编译---arm-vfp-linux-gnu/bin/ld: cgic.o: Relocations in generic ELF (EM: 3)

时间:2015-12-18 16:39:48      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:

 

/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: inilib.a(iniApi.o): Relocations in generic ELF (EM: 3)
inilib.a: could not read symbols: File in wrong format

 

这是网上的解决办法:

在编译交叉编译cgi程序时,出现:arm-vfp-linux-gnu/bin/ld: cgic.o: Relocations in generic ELF (EM: 3)问题,上网查了下,只要条命令就解决问题了,进入程序目录,终端执行。

#make clean -w

这个命令会删除一些文件,执行完后,你再重新编译应该就没错了 !!!

其实问题并不是这样:

而是编译是调用的静态库编译有问题是gcc格式编译的

异常之交叉编译---arm-vfp-linux-gnu/bin/ld: cgic.o: Relocations in generic ELF (EM: 3)

标签:

原文地址:http://www.cnblogs.com/pengkunfan/p/5057263.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!