Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Help! Eclipse CDT shows semantic errors, but compilation is ok(CDT, Semantic, compilation)
Help! Eclipse CDT shows semantic errors, but compilation is ok [message #876637] Fri, 25 May 2012 02:05 Go to next message
Xianmang Alex is currently offline Xianmang AlexFriend
Messages: 1
Registered: May 2012
Junior Member
I'm trying to deploy the project scidb on Eclipse + CDT on Ubuntu.
After importing the project into Eciipse, the compilation is OK(by using project->build all).
But Eclipse shows there are more than one hundred errors. such as
1, 'std' is ambiguous '
2, Function 'string' could not be resolved Array.cpp /scidb/src/array line 74 Semantic Error
How to fix it ?
Here are my include paths:
/usr/include
/usr/include/google/protobuf
/usr/include/postgresql
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.4/include
/usr/lib/gcc/x86_64-linux-gnu/4.4/include-fixed
/usr/include/c++/4.4
/usr/include/c++/4.4/x86_64-linux-gnu
/usr/include/c++/4.4/backward

Re: Help! Eclipse CDT shows semantic errors, but compilation is ok [message #878750 is a reply to message #876637] Tue, 29 May 2012 21:28 Go to previous message
Yevgeny Shifrin is currently offline Yevgeny ShifrinFriend
Messages: 208
Registered: July 2009
Senior Member
Hi,

It seems like CODAN (code analysis) functionality. In some cases the indications are wrong/false Smile How is the code navigation? If you index your project what is the index statistics (after full index rebuild it could be found Error Log view)? If you find that everything seems ok, and indications are false you can disable the CODAN feature tests in Windows Preferences (look for "code analysis" or similar). Also it would be great if you could open a bug with a way to reproduce the false indications (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT&format=guided). But maybe indications show that there are some issues with your project settings.

Thanks,
Yevgeny
Previous Topic:Can't resolve #include <stdio.h> in Windows XP Pro
Next Topic:Eclipse based LPCxpresso problem
Goto Forum:
  


Current Time: Fri Apr 26 08:27:28 GMT 2024

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

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

Back to the top