Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: generated header for buildmode=c-archive lacks exported symbols for imported library #27150
What version of Go are you using (
Yes, that is how it works. The expectation is that your c-archive will only export functions from the main package, just as is done with a normal Go package.
The fact that a symbol marked with
Closing as working as expected.