linux GCC编译错误:CPU you selected does not support x86-64 instruction set

4436阅读 0评论2012-12-05 Aquester
分类:C/C++

Linux GCC编译时如遇到如下错误:
cpp:1: error: CPU you selected does not support x86-64 instruction set


是因为在64位平台上加了-march=pentium4这样一个编译参数,它只用于32位平台。

上一篇:thrift使用小记
下一篇:带属性的向前声明:warning: type attributes are honored only at type definition