I have clang 3.9 from http://llvm.org/releases/3.9.0/LLVM-3.9.0-win32.exe
clang version 3.9.0 (branches/release_39)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:Program FilesLLVMin
And gcc 6.2.0 (Mingw-w64)
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.
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++.
When I try to compile simple file I get:
fatal error: 'string' file not found
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.
Does it also mean my clang installation depends on MSVC that I don't have?
EDIT:
From the comment on this page: http://blog.johannesmp.com/2015/09/01/installing-clang-on-windows-pt2/
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.
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.
I think it explains everything. Does it mean I need mingw build to get it working with mingw?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…