linux下出现architecture of input file `*.o' is incompatible with i386:x86-64 output的解决方法

来源:互联网 发布:林湖景苑网络 编辑:程序博客网 时间:2024/05/22 04:27
在linux环境下出现提示:architecture of input file `*.o' is incompatible with i386:x86-64 output的最简单解决方法就是:删除文件目录下所有的.o文件,然后重新make或者gcc,不需要所说的-m32之类的(如果要编译很久除外),这是由于在32位linux系统编译的32位文件放到64位系统make就会出现链接错误,ld returned 1 exit status,重新编译则可以完美解决问题。
0 0
原创粉丝点击