有没有办法在GCC4.5.2编译器上使用google测试工具? < >我使用谷歌测试C++ FrAMAMORT来测试我的项目,但面临一些问题供您参考,请参见以下编译错误: src/excludes/Gtest/。/../include/Gtest/internal/Gtest port.h:972:37:错误:未在此范围内声明“nullptr” src/excludes/Gtest/./../include/Gtest/internal/Gtest-port.h:1316:22:错误:应为“;”在“覆盖”之前 src/exclusions/Gtest/。/../include/Gtest/internal/。/Gtest matchers.h:307:37:错误:“使用非公共访问权限声明的测试::内部::MatcherBase::MatcherBase(常量测试::内部::MatcherBase&)”不能在类主体中默认 /home/buildserver/rswork25Nov/Dev-UEM-1.2-POC/src/excludes/Gtest/。/../include/Gtest/internal/。/Gtest matchers.h:308:48:错误:“testing::internal::MatcherBase&testing::internal::MatcherBase::operator=(const testing::internal::MatcherBase&)”在类主体中声明为非公共访问时不能默认 src/exclusions/Gtest/./../include/Gtest/internal/Gtest param util.h:521:74:错误:没有依赖于模板参数的“实例化信息”参数,因此“实例化信息”声明必须可用 src/exclusions/Gtest/。/../include/Gtest/internal/。/Gtest matchers.h:305:61:错误:无法分配抽象类型为“testing::internal::MatcherInterfaceAdapter”的对象

有没有办法在GCC4.5.2编译器上使用google测试工具? < >我使用谷歌测试C++ FrAMAMORT来测试我的项目,但面临一些问题供您参考,请参见以下编译错误: src/excludes/Gtest/。/../include/Gtest/internal/Gtest port.h:972:37:错误:未在此范围内声明“nullptr” src/excludes/Gtest/./../include/Gtest/internal/Gtest-port.h:1316:22:错误:应为“;”在“覆盖”之前 src/exclusions/Gtest/。/../include/Gtest/internal/。/Gtest matchers.h:307:37:错误:“使用非公共访问权限声明的测试::内部::MatcherBase::MatcherBase(常量测试::内部::MatcherBase&)”不能在类主体中默认 /home/buildserver/rswork25Nov/Dev-UEM-1.2-POC/src/excludes/Gtest/。/../include/Gtest/internal/。/Gtest matchers.h:308:48:错误:“testing::internal::MatcherBase&testing::internal::MatcherBase::operator=(const testing::internal::MatcherBase&)”在类主体中声明为非公共访问时不能默认 src/exclusions/Gtest/./../include/Gtest/internal/Gtest param util.h:521:74:错误:没有依赖于模板参数的“实例化信息”参数,因此“实例化信息”声明必须可用 src/exclusions/Gtest/。/../include/Gtest/internal/。/Gtest matchers.h:305:61:错误:无法分配抽象类型为“testing::internal::MatcherInterfaceAdapter”的对象,c++,linux,googletest,gcc4,C++,Linux,Googletest,Gcc4,也许你可以求助于谷歌测试的老标签 比较1.8.1要求: Linux Requirements These are the base requirements to build and use Google Test from a source package (as described below): GNU-compatible Make or gmake POSIX-standard shell POSIX(-2) Regular Expressions (regex.h) A C++9

也许你可以求助于
谷歌测试的老标签

比较
1.8.1
要求:

Linux Requirements

These are the base requirements to build and use Google Test from a source package (as described below):

GNU-compatible Make or gmake
POSIX-standard shell
POSIX(-2) Regular Expressions (regex.h)
A C++98-standard-compliant compiler
最新版本:

Build Requirements

These are the base requirements to build and use Google Test from a source package:

Bazel or CMake. NOTE: Bazel is the build system that googletest is using internally and tests against. CMake is community-supported.

a C++11-standard-compliant compiler

我想你必须做出一个折衷:与你的工具链兼容
googletest
功能。

为了更好的可读性,请以适当的格式发布日志。GCC 4.5已经很旧了。你考虑过使用更新的编译器吗?然后,您可以享受C++11/14/17支持,您当前的编译器太旧,无法支持它。@VaibhavSharma OP将无法正确格式化它(即作为代码)因为系统会告诉他们需要用这么多的代码提供更多的散文解释。你至少需要gcc 4.6@Dhiraj:大多数操作系统都有额外的编译器。Debian/Ubuntu示例。。。以及Fedora/CentOS等。