-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/cgo: could not determine kind of name for C.datspecialnumber #9733
Comments
Remove the blank line above the |
As @alicebob said, there should be no newline between the |
Oops, my bad. Thanks for clearing that up, guys. |
Wow! I met the same problem. |
The f**k! Thanks guys, was stuck for hours, it was driving me mad... |
I just want to add that multiline imports like
Also breaks this stuff |
Yeah the space might be the problem. But I still get this error when I'm trying to declare a c struct in cgo with no space between comments and type record C.some_struct
// could not determine kind of name for C.some_struct this time it really can not determine |
Code in Go file:
Output from
go run test.go
:More info
Anyone have an idea of what is causing this error? Am i doing something wrong?
The text was updated successfully, but these errors were encountered: