cmd/cgo: c code that was compiled with go, cannot also be used by go #27019
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I have not tried with any go1.11.x releases
What operating system and processor architecture are you using (
go env
)?What did you do?
You can find a demo, here.
What did you expect to see?
$ go build -o ./lib/lib.so -buildmode=c-shared ./lib/lib.go $ go run main.go hello, world!
What did you see instead?
The text was updated successfully, but these errors were encountered: