GCC构建问题(#include_next limits.h) [英] GCC build problem (#include_next limits.h)

查看:3241
本文介绍了GCC构建问题(#include_next limits.h)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试

 $ make depends -f gcc.mak 

我的Ubuntu机器上的一个中间件我得到这个

 / usr / include /../include/limits.h:125:26:错误:no include在这个路径中搜索limits.h 

这是limits.h:125附近的内容:

 
/ *获取编译器的limits.h,它定义了几乎所有的ISO常量。

我们把这个#include_next放在双重包含检查之外,因为
应该可以多次包含这个文件,并且仍然可以从gcc的头文件获得
的定义。 * /
#if defined __GNUC__ &&!defined _GCC_LIMITS_H_
/ *`_GCC_LIMITS_H_'是GCC文件定义的内容。 * /
#include_next
#endif

我试过设置



$ $ $ $ $ $ $ $ $ $ $ export $ C $ INPUDE_PATH = / usr / lib / gcc / x86_64-linux-gnu / 4.3 / include-fixed / $ b $ export $ INCLUDE = / usr / lib / gcc / x86_64-linux-gnu / 4.3 / include-fixed /
$ export CPLUS_INCLUDE_PATH = / usr / lib / gcc / x86_64-linux-gnu / 4.3 / include-fixed /

(这是我在我的系统上找到另一个limits.h的地方)。我已经安装了libc6-dev,可能它的limits.h已被另一个包覆盖了吗?我需要另一个-dev包吗?或者是所需的环境变量;也许这可以通过其他方式绕过?

解决方案

您需要的软件包是glibc。 b

When i try to

$ make depend -f gcc.mak

a middleware on my Ubuntu machine I get this

/usr/include/../include/limits.h:125:26: error: no include path in which to search for limits.h

This is the contents around limits.h:125:

/* Get the compiler's limits.h, which defines almost all the ISO constants.

    We put this #include_next outside the double inclusion check because
    it should be possible to include this file more than once and still get
    the definitions from gcc's header.  */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>
#endif

I tried setting

$ export INCLUDE=/usr/lib/gcc/x86_64-linux-gnu/4.3/include-fixed/
$ export C_INCLUDE_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.3/include-fixed/
$ export CPLUS_INCLUDE_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.3/include-fixed/

(which is where I found another limits.h on my system). I already have libc6-dev installed, could it be that its limits.h has been overwritten by another package? Do I need another -dev package? Or is an environment variable required; perhaps this could be circumvented in some other way?

解决方案

the package that you need is glibc.

这篇关于GCC构建问题(#include_next limits.h)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆