title: Dubious error messages in Eclipse (CDT) while build succeeds
body: <p>Using the <strong>Eclipse IDE for C/C++ Linux Developers</strong> (Version: <strong>Indigo</strong> Release) with <strong>g++ 4.1.2</strong> (on <strong>Scientific Linux CERN 5</strong> = RHEL 5), I currently work on a project where I make use of a <strong>Qt4</strong> GUI as well as Apache's <strong>log4cxx</strong> framework and of some C++ standard classes. 
  I have installed <strong>Nokia</strong>'s "Qt Eclipse Integration for C++" plugin, which automatically configured Qt toolchain support (qmake, etc.).  </p>
  
  <p>Up until now I got everything running. My program compiles well. Except for some warnings (which are reasonable), I observe a successful build process on Eclipse's console. 
  Unfortunatetly, at the same time I get about 150 error messages in the "Problems" window.  </p>
  
  <p>Some examples:  </p>
  
  <p>For the line  </p>
  
  <pre><code>using namespace log4cxx;
  </code></pre>
  
  <p>I get  </p>
  
  <pre><code>Symbol log4cxx could not be resolved
  </code></pre>
  
  <p>and for  </p>
  
  <pre><code>std::vector&lt;View*&gt;&amp; Model::GetRegisteredViews() { ... }
  </code></pre>
  
  <p>I get  </p>
  
  <pre><code>Symbol vector could not be resolved
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>Member declaration not found  
      (-&gt; of GetRegisteredViews() although the decl. is available,  
      code compiles!)
  </code></pre>
  
  <p>All error messages are also marked with annotation symbols in the editor window, which is quite annoying. </p>
  
  <p>From the stackoverflow forums I have learned that it might have to do with the fact that I had two versions of gcc installed, namely <strong>4.1.2</strong> and <strong>4.4</strong>. I have already uninstalled 4.4 (using the package management system of RHEL, yum) - without success.</p>
  
  <p>It might also have to do with the indexer, but frankly I have no idea where to start fixing this problem.</p>
  
  <p>To me, it looks like Eclipse misses some include or library path entries, but both are mentioned in the Qt pro file as well as in Eclipse's project settings...</p>
  
  <p>Your help would be highly appreciated, 
  thank you for your comments!</p>