问题:usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64 output
在32位Linux 系统下编译的o文件残留,
在64位编译时候提示的编译错误。
方案1:make clean
方案2:部分情况是Makefile或者cmakelist编写错误,可以查看是否有编译平台指定错误
例如在默认64编译环境下编译32位工程,要指定编译器属性
set_target_properties(.... “-m32”);