当我在 Redhat OS(gcc 版本为 3.2.2)上编译 gtest 示例时,它会抛出如下错误,但是它在 Ubuntu 上编译它没关系。请帮助我。错误或警告:
../include/gtest/internal/gtest-internal.h: In instantiation of `testing::internal::ImplicitlyConvertible<const void*, const void*>':
../include/gtest/gtest-printers.h:314: instantiated from `void testing::internal::DefaultPrintTo(char, testing::internal::bool_constant<true>, T*, std::ostream*) [with T = const void]'
../include/gtest/gtest-printers.h:376: instantiated from `void testing::internal::PrintTo(const T&, std::ostream*) [with T = const void*]'
../include/gtest/gtest-printers.h:416: instantiated from here
../include/gtest/internal/gtest-internal.h:890: no method `
testing::internal::ImplicitlyConvertible<const void*, const void*>::MakeFrom
'
../include/gtest/internal/gtest-internal.h:890: invalid use of undefined type `
class testing::internal::ImplicitlyConvertible<const void*, const void*>'
../include/gtest/internal/gtest-internal.h:847: declaration of `class
testing::internal::ImplicitlyConvertible<const void*, const void*>'