title: Eclipse 3.7 cannot resolve Types in C++ Editor
body: <p>I recently changed from Eclipse 3.6 to Eclipse 3.7 , which I am using  for C++ development in Ubuntu 11.04 . </p>
  
  <p>With Version 3.6 I had no big troubles, except that I always had some issues with the indexer.
  Now with Version 3.7 it begins marking unresolved Types as Errors. Since the indexer seems to dislike me even more, my Eclipse apparently doesn't know types like <code>uint16_t</code> or <code>size_t</code>.</p>
  
  <p>In contrary to the displayed errors in the code editor, my compiler has no problems with compiling the code and resolving all symbols and types, so this seems to be a problem of the IDE itself. </p>
  
  <p>Are there any ways to avoid this behavior, because all the red underlines make my code more and more unreadable...?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Okay with some research and the answer from Dennis I found out that I need to add some paths to
  <code>Project Properties/ C/C++ General/ Paths and Symbols</code> </p>
  
  <p>Since I am  building for a PowerPC instead of a I32 target, I can not just add <code>/usr/include</code> .
  Instead I needed to add</p>
  
  <p><code>/usr/powerpc-linux-gnu/libc/usr/include</code> </p>
  
  <p>for all the standard headers (like <code>stdint.h</code>).
  Also I needed:</p>
  
  <p><code>/usr/lib/gcc/powerpc-linux-gnu/4.5.1/include</code> </p>
  
  <p>for the <code>stdarg.h</code>. </p>
  
  <p>Now almost all the errors are gone. The only function which still troubles me is <code>printf</code> from the header <code>stdio.h</code>.  I looked it up and the header file itself lies within the included paths. Still I get an Error which says <code>Function printf could not be resolved</code>. I want to note again, that these are just errors displayed by Eclipse - The compiling itself works fine.</p>
  
  <p>So this actually throws up 3 questions:</p>
  
  <ol>
  <li><p>In the project properties the <code>Paths and Symbols</code> section coheres with the include Paths out of the <code>C++ Build/Settings/C++ Includes</code> section. This means adding/deleting a path in one of those sections directly affects the entry of the others. Since the <code>C++ Includes</code> directly coheres with the Compiler I wonder why the compiler can compile correcty ( and finds the headers ) even if they arent passed to him as a path? Is there some kind of standard path GCC uses, which I don't know about?</p></li>
  <li><p>Why doesn't he find <code>printf</code> in eclipse? The headerfile <code>stdio.h</code> is included and it also contains the declaration of <code>printf</code> - so why does the Eclipse Code Editor tell me that it can't resolve it?</p></li>
  <li><p>Why are the header files divided so much? I am aware that I need other header files if I am building for another traget (e.g. PowerPC) - But why does the GNU GCC separate those headers in different dirs? </p></li>
  </ol>