tfhq / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

compilation issue #500

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
while compiling the googletest with my base code i found below issue :

In file included from //gtest-1.7.0/include/gtest/internal/gtest-internal.h:60,
                 from //gtest-1.7.0/include/gtest/gtest.h:58,
                 from //gtest-1.7.0/samples/sample1_unittest.cc:48:
//gtest-1.7.0/include/gtest/gtest-message.h: In member
   function `testing::Message& testing::Message::operator<<(const T&)':
//gtest-1.7.0/include/gtest/gtest-message.h:130: syntax
   error before `;' token
//gtest-1.7.0/include/gtest/internal/gtest-internal.h: At
   global scope:
//gtest-1.7.0/include/gtest/internal/gtest-internal.h: In instantiation of 
`testing::internal::ImplicitlyConvertible<const void*, const void*>':
//gtest-1.7.0/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]'
//gtest-1.7.0/include/gtest/gtest-printers.h:376:   instantiated from `void 
testing::internal::PrintTo(const T&, std::ostream*) [with T = const void*]'
//gtest-1.7.0/include/gtest/gtest-printers.h:416:   instantiated from here
//gtest-1.7.0/include/gtest/internal/gtest-internal.h:822: no
   method `testing::internal::ImplicitlyConvertible<const void*, const void*>::
   MakeFrom'
//gtest-1.7.0/include/gtest/internal/gtest-internal.h:822: invalid
   use of undefined type `class testing::internal::ImplicitlyConvertible<const
   void*, const void*>'
//gtest-1.7.0/include/gtest/internal/gtest-internal.h:779: declaration
   of `class testing::internal::ImplicitlyConvertible<const void*, const void*>
   '
make: *** [sample1_unittest.o] Error 1

is there way to get rid to this ...

Original issue reported on code.google.com by varun.baweja on 10 Sep 2015 at 10:37

GoogleCodeExporter commented 9 years ago
g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

Original comment by varun.baweja on 10 Sep 2015 at 11:01

GoogleCodeExporter commented 9 years ago
The code seem correct to me.
On the other hand, gcc 3.4.4 is 10 years old.
Is there any way you can use a more recent compiler?

Original comment by sbe...@google.com on 10 Sep 2015 at 2:03