logoalt Hacker News

xvilkayesterday at 1:35 PM4 repliesview on HN

Clang is the better alternative to MinGW because it can use standard Windows libraries and avoids the need for additional runtime.


Replies

dwrobertsyesterday at 2:04 PM

Can you actually do cross compilation (on Linux host to win64 binary) with clang in the same way as MingW does out of the box though?

show 1 reply
jezek2yesterday at 2:19 PM

I use MingW without any extra libs (no msys), it just uses the ancient msvcrt.dll that is present in all Windows versions, so my programs work even on Windows 2000.

Additionally the cross-compiler on Linux also produces binaries with no extra runtime requirements.

show 1 reply
1718627440yesterday at 7:28 PM

MSYS2 UCRT also uses the native Windows libraries (aka. UCRT).

reactordevyesterday at 1:47 PM

Just msys2 it all

show 1 reply