Using GoogleTest [message #1078814] |
Sat, 03 August 2013 16:17 |
Missing name Mising name 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..
|
|
|
Powered by
FUDForum. Page generated in 0.02882 seconds