andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

undefined reference error with gcc 5.1.0 #291

Closed Michael-Dixey closed 6 years ago

Michael-Dixey commented 6 years ago

I have installed gcc 5.1.0, but unfortunately am still receiving the common "undefined reference to TaskDialog" error that has been reported many times. I was under the impression any gcc version after 4 would be appropriate for this. Is there something simple I'm missing here? Any help would be appreciated, as I look forward to trying out your gui for Go.

C:\TDM-GCC-64>go get "github.com/andlabs/ui"

github.com/andlabs/ui

C:/Users/mdixey/go/src/github.com/andlabs/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In function msgbox': E:/github.com/andlabs/libui/windows/stddialogs.cpp:113: undefined reference to__imp_TaskDialog' collect2.exe: error: ld returned 1 exit status

gcc version info: C:\TDM-GCC-64>gcc --version gcc (tdm64-1) 5.1.0

andlabs commented 6 years ago

Also try switching to MinGW-w64.

andlabs commented 6 years ago

Duplicate of #279