C++ C++;自动工具Google测试框架

C++ C++;自动工具Google测试框架,c++,autotools,googletest,C++,Autotools,Googletest,我正在尝试使用autotools将Google测试框架添加到我的应用程序中。 但我有一些发音错误。 在configure.ac中: AC_CHECK_HEADER([gtest/gtest.h], [AC_DEFINE([HAVE_GTEST_H], 1)]) 但在日志中我得到: ... checking for limits.h... yes checking gtest/gtest.h usability... no checking gtest/gtest.h presence... n

我正在尝试使用autotools将Google测试框架添加到我的应用程序中。 但我有一些发音错误。 在configure.ac中:

AC_CHECK_HEADER([gtest/gtest.h], [AC_DEFINE([HAVE_GTEST_H], 1)])
但在日志中我得到:

...
checking for limits.h... yes
checking gtest/gtest.h usability... no
checking gtest/gtest.h presence... no
checking for gtest/gtest.h... no
config.log:

configure:3276: checking gtest/gtest.h presence
configure:3276: gcc -E  conftest.c
In file included from conftest.c:19:0:
/usr/include/gtest/gtest.h:54:18: fatal error: limits: No such file or directory
compilation terminated.
这两个文件都存在。我知道/Ur/I包含默认的包含。

<代码>代码>代码>是一个C++标题,它可能表示“代码> GTest.H./Cuth>是一个C++标题,这意味着谷歌测试框架是用C++编写的。您需要使用C++编译器来检测标题的可用性。 有关如何使用autotools解决此问题的详细信息,请参阅。

显然gcc中存在一个bug!所以,我的猜测是,要么文件实际上不存在,要么无法从您使用的帐户中读取。。。