title: Eclipse CDT: Symbol 'cout' could not be resolved
body: <p>The error is as above. I have what should be all the necessary files include in the eclipse project:</p>
  
  <pre><code>/usr/include/c++/4.6
  /usr/include
  /usr/include/linux
  /usr/local/include
  </code></pre>
  
  <p>etc. </p>
  
  <p>I tried <code>std::cout</code> and <code>using namespace std;</code> <code>cout</code> but it still says unresolved. </p>
  
  <p>I have imported <code>iostream</code> and <code>cstdlib</code>.</p>
  
  <p>Also, I'm on Ubuntu 12.04 with eclipse 3.7.2.</p>
  
  <p>Code snippet:</p>
  
  <pre><code>#include &lt;cstdio&gt;
  #include &lt;cstdlib&gt;
  #include &lt;cstring&gt;
  #include &lt;iostream&gt;
  #include "XPLMDisplay.h"
  #include "XPLMGraphics.h"
  
  int XPluginStart(char * outName,  char * outSig,  char * outDesc) {
      /* ... */
      std::cout &lt;&lt; "test" &lt;&lt; std::endl;
      /* ... */
  }
  </code></pre>
  
  <p>using namespace std;</p>
  
  <hr>
  
  <p>UPDATE: I had created the eclipse project from existing code. Creating a new c++ project fixes it. I'll accept an answer that explains what setting in the existing project could cause this (so I don't have to cut &amp; paste all my projects).</p>