- 论坛徽章:
- 1
|
如题,参考了网上所说的ubuntu降低gcc版本的deb包dpkg的安装方法,成功在update-altnertive --config gcc上完成新安装的gcc链接。gcc -v也能看到新安装的gcc版本,为什么就是不能编译文件。提示如下:
root@ankerli-X201E:~# gcc -g -E hello.c -o hello
In file included from /usr/include/stdio.h:27,
from hello.c:1:
/usr/include/features.h:374:25: error: sys/cdefs.h: 没有那个文件或目录
/usr/include/features.h:398:23: error: gnu/stubs.h: 没有那个文件或目录
In file included from hello.c:1:
/usr/include/stdio.h:35:25: error: bits/types.h: 没有那个文件或目录
/usr/include/stdio.h:164:28: error: bits/stdio_lim.h: 没有那个文件或目录
/usr/include/stdio.h:853:30: error: bits/sys_errlist.h: 没有那个文件或目录
请问是什么原因?为什么网上搜到的教程都没有提到这个问题? |
|