您的位置:首页 > 编程语言 > PHP开发

is incompatible with i386:x86-64 output

2014-05-24 19:13 1116 查看
/usr/bin/ld: warning: i386 architecture of input file `./src/main.o' is incompatible with i386:x86-64 output

出现这种警告的时候的时候,运行程序老是段错误,要加-ms32,就好了。

gcc -m32 -o usehello_static usehello.c libhello.a

原因引用的库是 32位的,我是用的64位的系统
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐