How to use clang with mingw-w64 headers on windows
<p>I have clang 3.9 from <a href="http://llvm.org/releases/3.9.0/LLVM-3.9.0-win32.exe" rel="noreferrer">http://llvm.org/releases/3.9.0/LLVM-3.9.0-win32.exe</a></p>

<pre><code>clang version 3.9.0 (branches/release_39)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
</code></pre>

<p>And gcc 6.2.0 (Mingw-w64)</p>

<pre><code>gcc (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 6.2.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</code></pre>

<p>I don't have MSVC installed on my PC and no Windows SDK. I need some particular feature of clang and I wanted to replace it with gcc and more specifically with g++ because I use C++.</p>

<p>When I try to compile simple file I get:</p>

<blockquote>
  <p>fatal error: 'string' file not found</p>
</blockquote>

<p>Does it mean my current clang installation doesn't support mingw on windows? Basically all I want is to use headers and libs from my mingw-w64 installation. I was looking for solution and didn't find anything. I don't know what should I do. </p>

<p>Does it also mean my clang installation depends on MSVC that I don't have?</p>

<p><strong>EDIT:</strong> 
From the comment on this page: <a href="http://blog.johannesmp.com/2015/09/01/installing-clang-on-windows-pt2/" rel="noreferrer">http://blog.johannesmp.com/2015/09/01/installing-clang-on-windows-pt2/</a></p>

<blockquote>
  <p>This doesn't work anymore with the latest binaries (3.7.1, 3.8, 3.9)
  from LLVM, because these were compiled with Visual Studio and for
  Visual Studio.</p>
  
  <p>You can install the full Visual Studio 2015 (takes about 8GB) or
  install "Microsoft Visual C++ Build Tools 2015 Update 3" which
  contains only the command line tools from VS plus the standard C++
  header files that Clang needs.</p>
</blockquote>

<p>I think it explains everything. Does it mean I need mingw build to get it working with mingw?</p>