cmd/cgo: cgo + static const int results in "undefined reference" on linux #40820
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Have not tried
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Linking of a program referring to
static const int
fails withundefined reference
:foo.h
foo.go
What did you expect to see?
Compilation succeeds on linux as it does on darwin
What did you see instead?
The text was updated successfully, but these errors were encountered: