



If you don't have MinGW yet, you can get a fresh version from MSYS2. (That's assuming your MinGW produces 64-bit apps. If you want to use it with MinGW and have it installed, use clang -target=x86_64-w64-windows-gnu instead of gcc, and it should also just work. If you want to use it with MSVC and have it installed, running clang-cl instead of cl should just work.īut since you mentioned VSC, I assume you don't want MSVC. Clang is going to use the standard library (and other libraries/headers) of that compiler, since it doesn't ship with ones of its own. On Windows, Clang is not self-sufficient, and is supposed to be used in combination with an other compiler: either MinGW (GCC) or MSVC.
