Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The instalation of CDT Tools on Eclipse can't find on index libraries of GCC or G++, but the file is running. Ex:

include stdio.h (The comment doesn't accept <> and #) The are a yellow line description: Unresolved inclusion. If I try to acess the library, just can't open because is not found.

share|improve this question
    
It would help to change the language of messages gcc LC_MESSAGES=C gcc –  user33165 Nov 10 '11 at 6:42
    
you can try to install g++ youtu.be/wl75o1Yc218 sometimes it happen based on compiler issue. –  Navid Golforoushan Apr 23 '13 at 4:26

4 Answers 4

I managed to get rid of the unresolved inclusion error, under the project properties C/C++ General -> Paths and Symbols, includes tab add a new a directory and choose /usr/include/c++/4.6.1

Now I don't have the unresolved warning but have all the Symbol could not resolved Ex:

#include <iostream>                //
#include <stack>                   //these 3 lines are ok
using namespace std;               //

list<int> newList;                 //get Symbol 'list' could not be resolved
cout<<"message"<<endl;             //the same for 'cout' and 'endl'

It can build and debug just fine, but what is the point of having and IDE if it won't give you any help while coding

share|improve this answer

This one is correct:

#include <iostream>                //
#include <list>                   //these 3 lines are ok
using namespace std;               //

int main()
{
list<int> newList;                 //get Symbol 'list' could not be resolved
cout<<"message"<<endl;             //the same for 'cout' and 'endl'
}

There is no "list" header and no main() in your code.

share|improve this answer

I had a similar problem with the HelloWorld example. "namespace Std" and "cout" gave a "not resolved" error. I fixed this by simply restarting eclipse. Seems it does not recognize all include paths after a fresh installation / project creation.

share|improve this answer

Try restart eclipse, clean all, and recompile every target.

share|improve this answer

Your Answer

 
discard

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.