Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Issues on Eclipse Semantic Checker(Semantic check before compile )
Issues on Eclipse Semantic Checker [message #1006746] Fri, 01 February 2013 16:34 Go to next message
Robin Wang is currently offline Robin WangFriend
Messages: 3
Registered: February 2013
Junior Member
Hello,everyone,I'm trying to set up an Eclipse DTC + MinGW enviroment to handle with my
C++ projects.
It seems that Eclipse DTC could check the semantic errors before being compiled. That's good!
However,this feature isn't running in correct way:
Eclipse told me there were some errors like :

Symbol 'std' could not be resolved
Symbol 'cout' could not be resolved
Symbol 'endl' could not be resolved

These errors were thrown out when I finish typing each line of my program.

I chose the Build All command even though errors displayed above still existed.To my surprise ,the program was built successfully and generated the executable binary.

What should I do to make Eclipse provide me correct informations during my typing?

I'm using Eclipse Classic 4.2.1

my program :"Hello Word" example program
  • Attachment: a.png
    (Size: 16.31KB, Downloaded 232 times)
Re: Issues on Eclipse Semantic Checker [message #1006800 is a reply to message #1006746] Sat, 02 February 2013 03:35 Go to previous messageGo to next message
Andrey Eremchenko is currently offline Andrey EremchenkoFriend
Messages: 8
Registered: July 2009
Junior Member
C++ code inside main.C? Try to rename your source file.
Re: Issues on Eclipse Semantic Checker [message #1006836 is a reply to message #1006800] Sat, 02 February 2013 17:11 Go to previous messageGo to next message
Robin Wang is currently offline Robin WangFriend
Messages: 3
Registered: February 2013
Junior Member
I realized that my files hadn't been saved after I changed them . To my surprise,these errors disappear as soon as I finished saving my files.

BTW,main.C is a C++ source file while main.c is a C source file in my settings.
  • Attachment: b.png
    (Size: 14.88KB, Downloaded 234 times)
Re: Issues on Eclipse Semantic Checker [message #1006837 is a reply to message #1006836] Sat, 02 February 2013 17:30 Go to previous message
Robin Wang is currently offline Robin WangFriend
Messages: 3
Registered: February 2013
Junior Member
Thanks for your help!
Who knows files should be saved before a grammar check...
Are there any ways to let Eclipse save files automatically?
Previous Topic:How can the declaration of an unused variable affect behavior?
Next Topic:Eclipse character encoding problem
Goto Forum:
  


Current Time: Tue Mar 19 11:55:42 GMT 2024

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

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

Back to the top