The following C++ application compiles and runs successfully within Eclipse CDT but the IDE is still reporting an error stating:
I had the same problem with my Juno Release, Build id: 20120510-1218 on Fedora 14. To solve the index problem: Navigate to preferences -> c/c++ -> Editor -> Indexer -> uncheck "Allow heuristic resolution of includes"
-All the best