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
#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