-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/cgo: duplicate symbol #3116
Labels
Milestone
Comments
What is setCharCB (or _setCharCB?) I don't see it defined in glue.h, but the bug must becaused by including glue.h in _cgo_export.h now (this is new behavior). Labels changed: added priority-go1, removed priority-triage. Owner changed to builder@golang.org. Status changed to Accepted. |
'setCharCB' is defined in line 25 of https://github.com/jteeuwen/glfw/blob/master/callback.go as: // void setCharCB() { glfwSetCharCallback(goCharCB); } and only called from line 195 in the same file as: C.setCharCB() Where the linker gets the underscored version from is unknown to me. |
Thanks for tracking that down. That kind of definition is no longer supported in cgo packages that use //export. You should talk to the owner of that code to get it updated. The change is documented in "The cgo command" section here: http://weekly.golang.org/doc/go1.html#cmd_cgo Russ Status changed to WorkingAsIntended. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by giacomo.tartari:
The text was updated successfully, but these errors were encountered: