title: Eclipse CDT: Symbol 'cout', 'map', 'vector', 'size_t', etc could not be resolved
body: <p>There is a lot of posts about that and I have already tried to apply solutions that have worked for others, but still not for me.</p>
  <p>First, everything was fine with a c++ project I am working on under Linux, with Eclipse Indigo, gcc-4.7.1, cx11 activated, and Gentoo Linux. My project uses a home built static library. I made some modifications regarding some template class declarations. Then, I had some unexpected 'could not be resolved' in my library.</p>
  <p>What I did is to rebuild the index of the library, clean the project and rebuild it. It compiles fine like it already used to before the modifications and before the index rebuild, but the 'could not be resolved' is still here.</p>
  <p>OK, I try to see at least if my main project builds. There is one <strong>unresolved name</strong> from the library. So I rebuild the main project index, and here, <strong>all standard keywords become underlined with a 'could not be resolved' everywhere</strong>, and no compilation possible since it finds thousands of unresolved names.</p>
  <p>I tried to clean and rebuild, to add many include paths in the project properties :</p>
  <pre><code>-I/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.1/plugin/include -I/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.1/include/g++-v4/algorithm -I/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.1/include -I/usr/include -I/usr/include/linux -I/usr/local/include
  </code></pre>
  <p>That has changed nothing.</p>
  <p>The 'index/Search for unresolved features' finds :</p>
  <blockquote>
  <p>algorithm, cassert, cmath, cstdlib, fstream, iostream, map, set,
  sstream, string, tuple, utility</p>
  </blockquote>
  <p>I tryed to add explicitely the algorithm include path. But that has changed nothing.</p>
  <p>At the beginning of my .cpp, I have a <code>using namespace std;</code>. If I add <code>std::</code> before for example <code>set</code>, it changes nothing.</p>
  <p>Autocompletion after <code>std::</code> does not propose for example <code>set</code>.</p>
  <p>Of course, I have tried to close/reopen Eclipse, but without more success.</p>
  <p>Any clues?</p>