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 #331

Closed
xuanjiang1985 opened this issue Oct 27, 2018 · 2 comments
Closed

DllMain #331

xuanjiang1985 opened this issue Oct 27, 2018 · 2 comments

Comments

@xuanjiang1985
Copy link

I got an error:

$ go run main.go
# command-line-arguments
D:\Go\pkg\tool\windows_amd64\link.exe: running g++ failed: exit status 1
D:/GoWorks/src/github.com/andlabs/ui/libui_windows_amd64.a(init.cpp.obj): In function `DllMain':
C:/projects/libui/windows/init.cpp:170: multiple definition of `DllMain'
C:\Users\ADMINI~1\AppData\Local\Temp\go-link-196714667\000046.o:D:/GoWorks/src/github.com/go-vgo/robotgo/vendor/github.com/robotn/gohook/hook/windows/properties_c.h:193: first defined here
collect2.exe: error: ld returned 1 exit status

I am a PHPer, I have no idea to deal with that.

@andlabs
Copy link
Owner

andlabs commented Oct 27, 2018

FWIW this is a bug both in libui and in this gohook thing; neither of us should be exporting DllMain

@andlabs
Copy link
Owner

andlabs commented Oct 27, 2018

Moved to andlabs/libui#433

@andlabs andlabs closed this as completed Oct 27, 2018
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