64位centos7 编译 32位文件出错

 

[tian@lixixi demo]$ gcc -m32 str.c -o app
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_s.so when s
earching for -lgcc_s/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status

这个是由于没有32位的对应安装包

[tian@lixixi demo]$ yum search libgcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
=================================== N/S matched: libgcc ====================================
libgcc.i686 : GCC version 4.8 shared support library
libgcc.x86_64 : GCC version 4.8 shared support library

Name and summary matches only, use “search all” for everything.

我这个错误执行以下命令即可:
[root@lixixi ~]# yum install libgcc.i686

你可能感兴趣的:(linux,语音处理)