使用GCC编译C程序时出错

时间:2014-11-22 14:13:03

标签: c gcc

我很擅长在Linux中使用GCC。我编写了一个示例C程序,当我尝试使用gcc file.c在命令行中运行C程序时,它给出了以下错误:

​In file included from /usr/include/features.h:388:0,
                 from /usr/include/limits.h:25,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/limits.h:34,
                 from adder_test_gen.c:1:
/usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory
 # include <gnu/stubs-64.h>
                           ^

当我输入which gcc时,我会获得已安装文件的位置,我的版本号为:

\gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

我错过了什么?

0 个答案:

没有答案