Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllMain erroneously included in static builds #433

Open
andlabs opened this issue Oct 27, 2018 · 2 comments
Open

DllMain erroneously included in static builds #433

andlabs opened this issue Oct 27, 2018 · 2 comments
Milestone

Comments

@andlabs
Copy link
Owner

andlabs commented Oct 27, 2018

Moved from andlabs/ui#331

@andlabs andlabs added this to the Alpha 5 milestone Dec 31, 2018
@mammenj
Copy link

mammenj commented Apr 19, 2020

Still getting the error (below), the error comes when including "github.com/go-vgo/robotgo" packages

D:\Go\pkg\tool\windows_amd64\link.exe: running g++ failed: exit status 1
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/gopath/pkg/mod/github.com/andlabs/ui@v0.0.0-20180902183112-867a9e5a498d/libui_windows_amd64.a(init.cpp.obj):C:/projects/libui/windows/init.cpp:170: multiple definition of `DllMain'; C:\Users\john\AppData\Local\Temp\go-link-719825359\000048.o:D:/gopath/pkg/mod/github.com/robotn/gohook@v0.0.0-20200411172114-146f7aeeb5e8/hook/windows/properties_c.h:193: first defined here
collect2.exe: error: ld returned 1 exit status

@andlabs
Copy link
Owner Author

andlabs commented Apr 19, 2020

The fix has not been merged back into Go builds yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants