Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using GoogleTest(Semantic/Analysis errors)
Using GoogleTest [message #1078814] Sat, 03 August 2013 12:17
Eclipse UserFriend
I'm using CDT with GoogleTest. However I'm encountering a problem where the code parser is picking up errors in the GoogleTest macros/code, despite the compiler output showing no complaints.

Specifically, it complains about the TEST macro as follows:
Invalid arguments '
Candidates are:
testing::TestInfo * MakeAndRegisterTestInfo(const char *, const char *, const char *, const char *, const void *, void (*)(), void (*)(), testing::internal::TestFactoryBase *)
Semantic Error


and:
Symbol 'NULL' could not be resolved
Semantic Error


and:
The type 'testing::internal::FunctionMocker' must implement the inherited pure virtual method 'testing::internal::UntypedFunctionMockerBase::UntypedDescribeUninterestingCall'
Code Analysis Problem



Now I'm guessing I need to add some symbols for the parser to recognise. I added the google test include path to the "Paths and Symbols" Includes tab for the Project Properties, and the google test lib binaries to the Libraries tab.
Is there anything else I need to do? Does anyone else use Google Test with CDT and have any such problems?

Many thanks for any info/help..
Previous Topic:New to Eclipse: use 3rd party SDK
Next Topic:Makefile license
Goto Forum:
  


Current Time: Thu May 22 14:31:00 EDT 2025

Powered by FUDForum. Page generated in 0.02609 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top