How to use clang with mingw-w64 headers on windows
The correct thing to do, is this… clang -target i686-pc-windows-gnu test.c -otest.exe Or if you want 64bit output… clang -target x86_64-pc-windows-gnu test.c -otest.exe Clang will determine the location of the headers and libraries from your path. Make sure that you only have the version of Mingw in your path that you are targetting. By default, … Read more