While Clang has its own standard library ( libc++ ), the clang-cl driver defaults to using Microsoft's msvc standard library ( msvcprt etc.). This is usually what you want, as it ensures ABI compatibility with other Windows libraries.
You cannot mix flags arbitrarily.
Here’s structured content about using the , suitable for a blog post, documentation, or tutorial. clang compiler windows
Clang on Windows: A Complete Guide to Modern C++ Development While Clang has its own standard library (
Clang often implements new C++ standards (like C++20 and C++23) very quickly, sometimes ahead of MSVC. How to Install Clang on Windows suitable for a blog post