title: Eclipse CDT complains about unresolved functions but still builds successfully
body: <p>The following C++ application compiles and runs successfully within Eclipse CDT but the IDE is still reporting an error stating:</p>
  
  <pre class="lang-none prettyprint-override"><code>Could not resolve function wprintf
  </code></pre>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;stdio.h&gt;
  #include &lt;wchar.h&gt;
  
  int main()
  {
    wprintf(L"Hello world");
    return 0;
  }
  </code></pre>
  
  <p>The directory <code>/usr/include</code> (where <code>wchar.h</code> resides) is definitely listed within the Include path as otherwise the application would not compile. Hitting F3 on <code>wprintf</code> reports:</p>
  
  <pre class="lang-none prettyprint-override"><code>Could not find symbol 'wprintf' in index
  </code></pre>
  
  <p>This is my set up:</p>
  
  <ul>
  <li>openSUSE 11.4</li>
  <li>Eclipse IDE for Java Developers (Indigo Service Release 2 - Build 20120216-1857)</li>
  <li>Eclipse CDT v8.0.2.201202111925</li>
  </ul>
  
  <p>Does anyone know how I can get Eclipse CDT to resolve this function correctly?</p>