How to use clang on Windows using mingw / libs headers

I downloaded clang for windows binary package from the website . It provides great VS / MSBuild integration, allowing you to build VS projects using clang instead of MSVC. However, I notice that it still uses the MSVC C library as well as the MSVC linker (link.exe). Also, including any STL STL headers like string or iostream cause build errors.

My question is, is it possible to use the full clang / llvm toolchain along with some non-Microsoft libraries (like libc ++ , mingw , etc.) to create a custom Windows binary? Doing it all from VS is a bonus, but even from the command line would be fine.

+3


source to share





All Articles