andlabs / ui

Platform-native GUI library for Go.
Other
8.34k stars 647 forks source link

run error in windows #368

Closed qktrzrj closed 4 years ago

qktrzrj commented 4 years ago

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

andlabs commented 4 years ago

Update your MinGW-w64.

zhang-ray commented 4 years ago

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
andlabs commented 4 years ago

@zhang-ray update your MinGW-w64

zhang-ray commented 4 years ago

@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...

andlabs commented 4 years 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.

sanguohot commented 4 years ago

@andlabs Thanks. My problem is solved after I changed TDM-GCC to MinGW