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: inline functions produce link errors #17356
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
The .go source file contains:
I think this is causing one part of the compile to think the function is inlined and so omitting the symbol in the object file, but obviously when
I'm not actually sure if this is supposed to work or not. I'm fairly sure it would be resolved by removing the "inline" designation from the functions in that file
Because the package is being compiled in C99 mode, a function that is plain
This is an issue that occurs in plain C as well. It has nothing to do with Go as such. The code only works if the compiler decides to inline all functions.
The simple fix is to change the comment in the matching_cgo.go to use
Closing because there is nothing to fix in Go.