This works with msvcrt but fails with ucrt. Noticed this while building graphviz.
HUGE_VAL works, while _HUGE and HUGE fail.
#include <stdio.h> #include <math.h> int main(void){ printf("%f %f %f\n", HUGE, _HUGE, HUGE_VAL); return 0; }
C:/msys64/ucrt64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccikldye.o:b.c:(.rdata$.refptr.__imp__HUGE[.refptr.__imp__HUGE]+0x0): undefined reference to `__imp__HUGE' collect2.exe: error: ld returned 1 exit status
This has been fixed in 5a4f14f69909ff8 I think