x/mobile: gomobile fails with linker error #24058
Closed
Labels
Milestone
Comments
It seems the library doesn't build:
|
I probably should create simple cpp project to test 'undefined reference', 'dev' branch compiles. Since goland does not support version control for imported code those are common complications build success or failed... I guess you can just run:
|
Change https://golang.org/cl/99875 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
What did you do?
trying to compile https://gitlab.com/axet/libtorrent with following error
My first guess this is gomobile issues. According to https://stackoverflow.com/questions/6045809 here something wrong with -lstdcpp definition.
Adding
#cgo LDFLAGS: -lstdc++
to the https://github.com/anacrolix/go-libutp/blob/master/utp.go does not solve the issue.The text was updated successfully, but these errors were encountered: