nagyistoce / googlemock

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

would be nice to support gcc 3.3 #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some users still use gcc 3.3, which Google Mock doesn't work with yet.  It
would be nice to make Google Mock compatible with gcc 3.3.

Original issue reported on code.google.com by zhanyong...@gmail.com on 13 Jan 2009 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 13 Jan 2009 at 5:39

GoogleCodeExporter commented 9 years ago
Using tr1 tuple from boost with gcc 3.3 under linux (ubuntu 8.10):

export CXX=g++-3.3
export CPPFLAGS="-I/home/yop/workbench/gmock-1.0.0/boost_1_36_0/
-I/home/yop/workbench/gmock-1.0.0/boost_1_36_0/boost/tr1"
./configure
make

Results in error:
In file included from include/gmock/gmock-matchers.h:46,
                 from include/gmock/gmock-spec-builders.h:71,
                 from include/gmock/gmock-generated-function-mockers.h:41,
                 from include/gmock/gmock.h:61,
                 from src/gmock.cc:32:
include/gmock/gmock-printers.h: In function `void
   testing::internal::DefaultPrintTo(char, const T&, std::ostream*)':
include/gmock/gmock-printers.h:177: error: syntax error before `operator'
include/gmock/gmock-printers.h:182: error: syntax error before `operator'

After applying the attached patch compiles succesfully.

make check fails with errors bellow repeatedly:

test/gtest_pred_impl_unittest.cc: In member function `virtual void
EXPECT_PRED_FORMAT1Test_FunctorOnBuiltInTypeSuccess_Test::TestBody()':
test/gtest_pred_impl_unittest.cc:333: error: syntax error before string 
constant  

Original comment by y.pag...@gmail.com on 15 Jan 2009 at 4:21

Attachments:

GoogleCodeExporter commented 9 years ago
Patch available for code review: http://codereview.appspot.com/11916

Original comment by y.pag...@gmail.com on 16 Jan 2009 at 11:14

GoogleCodeExporter commented 9 years ago
Sorry we missed you comment on Jan 16.  In the future, please send the message 
to the
googlemock discussion group to avoid it being lost.

Original comment by zhanyong...@gmail.com on 4 Mar 2009 at 7:14

GoogleCodeExporter commented 9 years ago
Closed since we haven't heard from y.pagles for a long time.  We can reopen it 
if the 
user wants to work on it again.

Original comment by zhanyong...@gmail.com on 5 Jun 2009 at 5:35