Jon*_*röm 10 c++ linux gcc g++ gnu-make
当我尝试
$ make depend -f gcc.mak
在我的Ubuntu机器上的中间件我得到了这个
/usr/include/../include/limits.h:125:26: error: no include path in which to search for limits.h
这是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
我尝试过设置
$ 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包吗?或者是需要的环境变量; 也许这可以通过其他方式来规避?