Ubuntu18.04使用gcc编译遇到的一些问题

Ubuntu18.04使用gcc编译遇到的一些问题

$ sudo apt-get install gcc-multilib

1. Ubuntu18.04安装gcc编译出现/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: 没有那个文件或目录编译中断

$ sudo apt-get install gcc-multilib

2. /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a when searching for -lgcc

/usr/bin/ld: cannot find -lgcc

$ sudo apt-get install apt-file
$ sudo apt-file update
$ sudo apt-file search libgcc.a
lib32gcc-7-dev: /usr/lib/gcc/x86_64-linux-gnu/7/32/libgcc.a
$ sudo apt-get install lib32gcc-7-dev
# c, make

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×