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位的系统
出现这种警告的时候的时候,运行程序老是段错误,要加-ms32,就好了。
gcc -m32 -o usehello_static usehello.c libhello.a
原因引用的库是 32位的,我是用的64位的系统
相关文章推荐
- ld: i386 architecture of input file `exit.o' is incompatible with i386:x86-64 output
- /usr/bin/ld: i386 architecture of input file `regcomp.o' is incompatible with i386:x86-64 output
- linux下出现architecture of input file `*.o' is incompatible with i386:x86-64 output的解决方法
- usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64 output
- ld: i386 architecture of input file `eatsyscall.o' is incompatible with i386:x86-64 output
- ubuntu 64位使用nasm汇编出现问题incompatible-with-i386-x86-64-output
- Ubuntu 16.04使用NASM编译时用ld链接程序出现:i386 架构于输入文件 sandbox.o 与 i386:x86-64 输出不兼容(I386 architecture in the input file sandbox.o is not compatible with i386: x86-64 output)
- /usr/bin/ld: i386:x86-64 architecture of input file `command.o' is incompatible with i386 output
- What does i386, i586, x86_64 stand for [转贴]
- The configuration file "vmname.vmx" was created by a VMware product that is incompatible with this v
- archlinux x86_64 fluxbox chroumium rox setting with dropbox
- iOS 中的 armv7,armv7s,arm64,i386,x86_64 都是什么
- android studio运行项目时运行不了报错Error running sample: This version of Android Studio is incompatible with t
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
- iOS armv7,armv7s,arm64,i386,x86_64 概念及制作对应的静态库
- X86_64和i386有什么区别吗?
- Android Studio 更新报错:This version of Android studio is incompatible withe gradle plugin used.
- i386、i686、IA-32、x86-64、AMD64、EM64T、IA-64
- AS出现的错误: This version of Android Studio is incompatible with the Gradle Plugin used.
- 制作同时支持armv7,armv7s,arm64,i386,x86_64的静态库.a