The following C++ application compiles and runs successfully within Eclipse CDT but the IDE is still reporting an error stating:
Ok, if /usr/include is listed correctly, then go to preferences -> c/c++ -> Editor -> Indexer -> select Indexer
preferences -> c/c++ -> Editor -> Indexer -> select Indexer
Sometimes change it from fast c/c++ indexer to the Full one resolves the problem.
Hope it helps