4

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.

Jorge Castro
  • 73,717
Luca
  • 51

4 Answers4

4

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.

laihro
  • 41
2

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

2

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

0

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.