Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Using GoogleTest(Semantic/Analysis errors)
Using GoogleTest [message #1078814] Sat, 03 August 2013 16:17
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 1
Registered: August 2013
Junior Member
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 Apr 25 09:55:35 GMT 2024

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

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

Back to the top