DescriptionFortunately, it looks like this problem has already been tackled with
Nokia's Symbian compiler. (Yay! It's a bit of a tricky fix.)
I'm attaching my draft of a patch (based on 2.0.1 release since I
don't see any Subversion repos of trunk) that fixed it up to compile
on AIX for me by playing with the defines in gtest and tweaking the
docs.
xlC's errors look like this:
"./gtest/gtest.h", line 631.10: 1540-0219 (S) The call to "FormatForFailureMessage" has no best match.
"./gtest/gtest.h", line 631.34: 1540-1228 (I) Argument number 1 is an lvalue of type "const char * const".
"./gtest/internal/gtest-internal.h", line 250.15: 1540-1202 (I) No candidate is better than
"testing::internal::FormatForFailureMessage<const char>(const char *)".
"./gtest/gtest.h", line 631.34: 1540-1231 (I) The conversion from argument number 1 to "const char *" uses "an lvalue-to-rvalue transformation".
"./gtest/internal/gtest-internal.h", line 243.15: 1540-1202 (I) No candidate is better than "testing::internal::FormatForFailureMessage<const char *>(const char * const &)".
"./gtest/gtest.h", line 631.34: 1540-1231 (I) The conversion from argument number 1 to "const char * const &" uses "the identity conversion".
"./gtest/gtest.h", line 629.8: 1540-0700 (I) The previous message was produced while processing "testing::internal::FormatForComparisonFailureMessage<const char *,const char *>(const char * const &, const char * const &)".
"./gtest/gtest.h", line 752.1: 1540-0700 (I) The previous message was produced while processing "testing::internal::CmpHelperNE<const char *,const char *>(const char *, const char *, const char * const &, const char * const &)".
"google/protobuf/stubs/common_unittest.cc", line 317.3: 1540-0700 (I) The previous message was produced while processing "google::protobuf::<unnamed>::ClosureTest_TestPermanentClosureMethod2_Test: :TestBody()".
Patch Set 1 #Patch Set 2 : Same changes, but might fix problem where side-by-side diffs didn't work #
MessagesTotal messages: 3
|