Closed qktrzrj closed 4 years ago
Update your MinGW-w64.
I got a similar error:
# github.com/andlabs/ui
C:/Users/root/go/pkg/mod/github.com/andlabs/ui@v0.0.0-20180902183112-867a9e5a498d/libui_windows_amd64.a(stddialogs.cpp.obj): In function `msgbox':
C:/projects/libui/windows/stddialogs.cpp:113: undefined reference to `__imp_TaskDialog'
collect2.exe: error: ld returned 1 exit status
@zhang-ray update your MinGW-w64
@zhang-ray update your MinGW-w64
Hello @andlabs , could you please give me more instruction? My GCC was installed from TDM-GCC JUST two days ago...
Yes, and that proves that TDM-GCC is outdated. You'll need to use MinGW-w64 instead.
The problem is a single missing entry in the comctl32.dll export table and I'm genuinely not sure why the fix has not propagated to other MinGW distributions.
@andlabs Thanks. My problem is solved after I changed TDM-GCC
to MinGW
github.com/andlabs/ui
D:/GoPATH/pkg/mod/github.com/andlabs/ui@v0.0.0-20180902183112-867a9e5a498d/libui_windows_amd64.a(stddialogs.cpp.obj): In function
msgbox': C:/projects/libui/windows/stddialogs.cpp:113: undefined reference to
__imp_TaskDialog' collect2.exe: error: ld returned 1 exit status