title: Windows 10: Clang, "stdio.h" not found
body: <p>I have installed LLVM and Clang-3.9.0 on Win10. I have MinGW installed as well.</p>
  <p>I have put my C code in 'D:' drive.</p>
  <p>I can use gcc and g++ to compile my code. But when I use clang I get:</p>
  <pre><code>clang -cc1 version 3.9.0 based upon LLVM 3.9.0 default target x86_64-pc-windows-msvc
  ignoring duplicate directory &quot;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A&quot;
  ignoring duplicate directory &quot;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A&quot;
  #include &quot;...&quot; search starts here:
  #include &lt;...&gt; search starts here:
   C:\Program Files\LLVM\bin\..\lib\clang\3.9.0\include
   C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include
   C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A
  End of search list.
   hello.c:1:10: fatal error: 'stdio.h' file not found
   #include &quot;stdio.h&quot;
               ^
   1 error generated.
  </code></pre>
  <p>As I can use gcc and g++, my environment variable settings are right. But then I am not able to force clang to look into C:\MinGW.</p>
  <p>I tried copy pasting the whole MinGW folder manually in <code>C:\Program Files\LLVM\bin\</code> and <code>\lib\clang\3.9.0\include</code> separately, but it did not work. I wanted to try <a href="https://stackoverflow.com/questions/6525245/getting-clang-to-work-on-windows">this</a>, but in 3.9.0 I cannot find, <code>clang/lib/Frontend/InitHeaderSearch.cpp</code>.</p>
  <p>Anyway, is there a work around?</p>
  <p>Note: I have tried <code>&lt;stdio.h&gt;</code> and <code>&quot;stdio.h&quot;</code> both, and I still get the same error.</p>