I've installed msys/clang using pacman and run it (from the usr/bin bash terminal) on a simple file which only includes iostream:
$ clang++ main.cpp -o prog.exe main.cpp:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. When I compile with mingw64/clang using the MinG64 terminal, it works. When should the msys/clang be used in such a case, then, and is there a way of making it work?
mingw64/clang --version:
$ clang --version clang version 11.0.0 (https://github.com/msys2/MINGW-packages f5d4dab9b9db65e8b4eff740629c411ea5e21091) Target: x86_64-w64-windows-gnu Thread model: posix InstalledDir: C:\MSYS2\mingw64\bin usr/bin/clang --version:
$ clang --version clang version 11.0.0 (https://github.com/msys2/MSYS2-packages dab5c29f1c61a173e404f1fd78f0c6f56441aa9f) Target: x86_64-pc-windows-msys Thread model: posix InstalledDir: /usr/bin
gcchas no problem compiling even if I run it fromusr/bin, so I assume all the libraries and headers are there.