I have some trouble with a cdt c++ project imported from a git repo. When I import the project via Import... -> Projects from Git, the indexer is not able to resolve the "standard"/"built-in" includes and symbols. With standard I mean iostream and so on. Compilation works perfectly.
I put this down to the following. It can be reproduced with a simple c++ project via New -> C++ Project -> Hello World C++ Project (Linux GCC toolchain). After creation everthing is fine and the indexer is able to resolve the "standard" includes.
But when I delete the project (not checking "Delete project contents on disk") and importing it again via Import -> Existing Projects into Workspace, the standard includes are missing/can not be resolved.
This is the same with import from git repo. All manually added includes are resolved but not the standard ones.
Rebuilding the index and/or restarting eclipse brings no help. Am I missing something when importing an existing project? One workaround is to add the "standard" includes and symbols manually via Properties -> C/C++ General -> Paths and Symbols. But I think this could not be the final thing to do, as a new project does have these things already from some built-in mechanism.
I am working on Linux version 3.2.0-30-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) with Eclipse Modeling Tools Juno Release (build id: 20120620-1657) and CDT 18.104.22.168206111645.
Why is it not checked after project (re)import by default?
if you can reproduce it and if you think this is an error, than please make an error report. But first search through bugzilla (https://bugs.eclipse.org/bugs/), maybe someone else already has reported this.
If you report a bug or find an existing bugzilla bug entry please drop a short reply here to have this information immediately in this thread.