參考資訊: https://mingw-users.narkive.com/3v9yhMEd/initcommoncontrolsex 問題如下:
undefined reference to 'InitCommonControlsEx'
解法如下:
#include <windows.h> #define _WIN32_IE 0x0400 #include <commctrl.h>
P.S. LDFLAGS記得帶入-lcomctl32