polevpn / webview

a cross-platform webview library for golang and c/c++
MIT License
37 stars 11 forks source link

cannot find -lgcc_eh collect2.exe #5

Open leejoys opened 2 years ago

leejoys commented 2 years ago

Don't work with example code

go build -ldflags="-s -w -H windowsgui" main.go

github.com/polevpn/webview

C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_eh collect2.exe: error: ld returned 1 exit status

Pikoti commented 2 years ago

hello, I have the exact same problem, did you manage solve it?

leejoys commented 2 years ago

No, I did it with lorca. And now I found lightweight GUI - walk.

Pikoti commented 2 years ago

ok thanks, I think I will look for another solution too.

polevpn commented 1 year ago

https://github.com/niXman/mingw-builds-binaries/releases use win32-seh-msvcrt-rt_v10 version

lilili87222 commented 1 year ago

copy libgcc.a to libgcc_eh.a in the same folder the libgcc.a in in mingw32