googletest - Errors while compiling GoogleMock on Solaris sparc 5.8 using Sun C++ 5.8 Patch 121017-20 2009/04/22 -


i'm able compile gtest using same compiler (sun c++ 5.8 on sparc) using below cxxflags , cmake

cxxflags = '-library=stlport4 -features=tmplife,tmplrefstatic -qoption ccfe -complextmplexp -mt -d_posix_c_source=199506l -d__extensions__' 

but when try compile gmock following errors:

scanning dependencies of target gmock [  9%] building cxx object cmakefiles/gmock.dir/src/gmock-all.cc.o "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 78: error: mockclass not defined. "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 84: error: mockclass not defined. "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 84: error: operand expected instead of ">". "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 166: error: mockclass not defined. "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 166: error: operand expected instead of ">". "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 173: error: multiple declaration naggymock. "/home/vkumar5/gtest_1.7.0/googletest_1_8/googlemock/include/gmock/gmock-generated-nice-strict.h", line 269: error: multiple declaration strictmock.  7 error(s) detected. make[2]: *** [cmakefiles/gmock.dir/src/gmock-all.cc.o] error 7 make[1]: *** [cmakefiles/gmock.dir/all] error 2 make: *** [all] error 2 

any suggestions??

ps: have set

#define gtest_on_solaries 1  #define gtest_lang_cxx11 0 

in gtest-port.h


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -