當我在Redhat OS上編譯gtest示例(gcc版本是3.2.2)時,它會拋出下面的錯誤,但是它在Ubuntu上編譯好了.Pleae幫助我。 錯誤或警告:gtest:編譯錯誤
../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*>'
你在ubuntu和redhat上使用哪些版本的編譯器? – phs 2013-03-14 05:50:32