clang hello.c -o hello.exe #include <iostream> int main() std::cout << "Hello, Clang++ on Windows!\n"; return 0;
clang-cl hello.cpp Or with the native Clang driver: clang compiler windows
clang++ hello.cpp -o hello.exe When using Clang from Visual Studio’s developer command prompt: clang hello