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

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

问题描述

当我尝试时

$ make 依赖 -f gcc.mak

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

/usr/include/../include/limits.h:125:26: 错误:没有搜索limits.h的包含路径

这是limits.h:125周围的内容:

<上一页>/* 获取编译器的limits.h,它定义了几乎所有的ISO 常量.我们把这个#include_next 放在双重包含检查之外,因为应该可以多次包含这个文件并且仍然得到gcc 标题中的定义.*/#if 定义 __GNUC__ && !defined _GCC_LIMITS_H_/* `_GCC_LIMITS_H_' 是 GCC 文件定义的.*/# include_next #万一

我试过设置

<上一页>$ 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/

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

解决方案

你需要的包是glibc.

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天全站免登陆