g++ 之 m64选项

今天编译之前的项目,竟然报了下面的错误

usr/bin/ld: i386 architecture of input file `./proxycpp/soapRemoteDiscoveryBindingProxy.o' is incompatible with i386:x86-64 output

其实是之前的.o文件是32位生成的,现在在64位重新编译,只好make clean 之后,

在Makefile 的g++ 选项上-m64就好了,如果你是32位系统,你可以设置为-m32

原文地址:https://www.cnblogs.com/geeker/p/4456175.html