64位Linux错误警告:无法读取符号,文件格式错误
64位Linux错误警告:无法读取符号,文件格式错误
在 Centos 64位机器上编译一个64位程序时,出现如下错误:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../crt1.o: could not read symbols: File in wrong format
可以看到,编译器对应到32位lib目录下
尝试解决
查看crt1.o文件格式:
# file /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../
原创
2021-10-25 01:52:55 ·
2288 阅读 ·
0 评论