Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the title says ,I get warnings with those two issues ,
The code compiles and run ,but its driving me crazy all those red and yellow lines under the code.
How can I remove them and still get the warnings and errors for "real" errors .

I'm running eclipse 4.2.2 , coding in c language .
system : Ubuntu 13.04 64 bit

share|improve this question

Note this is a warning from the IDE, not a warning from the compiler or an error. The problem is the IDE (Eclipse) doesn't know where your C++ libraries live. It's fairly simple to fix, you just tell it.

  1. To set properties for your project, right-click your CDT project and select Properties. Alternatively, to set properties for a specific source file in your project, right-click a source file within your make project and select Properties.
  2. Expand C/C++ General and select Paths and Symbols.
  3. Click Add to define new element (Include Path, Symbol, Library path etc).

And unless I'm mistaken, the path you want to feed it is /usr/include/c++/4.6 (that may be slightly different, depending on your version of Ubuntu).

Also, see this:

share|improve this answer
that path is what i have included , but the one that solved the problem is : "/usr/lib/gcc/x86_64-linux-gnu/4.7/include" – saeed hardan May 17 '13 at 11:47
up vote 0 down vote accepted

include "/usr/lib/gcc/x86_64-linux-gnu/4.7/include" in the
path/symbols in eclipse c/c++ general tab

share|improve this answer

right click the project and select "propertys" menuitem,in the popup window choose "C/C++ General" then choose "Preprocessor Include path",then in the panel select all four items in "providers" tab then apply the config ,then rebuild the project ,a new Includes will add to the project and warning message "unresovled inclusion" will disappear

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.