日期:2014-05-16  浏览次数:20518 次

高分请问:module.o: could not read symbols: File in wrong format
我的程序出现
ld:module.o: Relocations in generic ELF(EM: 40)
module.o: could not read symbols: File in wrong format
这样一个问题,是怎么回事啊?gcc版本不对,还是Makefile写的不对?


------解决方案--------------------
module.o格式不对,是不是从其他地方复制过来的?
全部clean掉,重新编译看看
------解决方案--------------------
设置一下CROSS_COMPILE这个环境变量
------解决方案--------------------
贴上你的Makefile吧。
用file命令查看一下你的文件格式。
楼主是交叉编译?