Could you please replace code below in function void ChSysInit() #if (WINVER >= 0x0600) with #if (WINVER >= 0x0600 && !defined(__MINGW32_VERSION)) This should fix compilation against MINGW32. It doesn't define NONCLIENTMETRICS::iPaddedBorderWidth. MINGW64 is fine. I tested this issue against TDM-GCC-32 (gcc version 5.1.0 (tdm-1)) Thanks.
#if (WINVER >= 0x0600)
#if (WINVER >= 0x0600 && !defined(__MINGW32_VERSION))
Report message to a moderator