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: variadic parameters not working with C.char #25143
Comments
Missing |
@cznic I can repo with the following and any c type as the variadic arg.
|
I can reproduce the issue with the above code in Go1.10. I don't know why it fails. I seem to recall, that Go cannot call C variadic functions but I cannot find that mentioned in the CGO docs at https://golang.org/cmd/cgo/. However, in this case |
@cznic is this the issue that you are looking for #975? |
Although perhaps this is an entirely different issue. #975 is about calling variadic C functions in Go, while this is one is entirely failing when a Go function has a variadic C. signature. /cc @hirochachacha too |
Change https://golang.org/cl/110159 mentions this issue: |
Thank you all guys for addressing this issue. Looking forward to using Go1.11 instead. Cheers! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I think so.
What operating system and processor architecture are you using (
go env
)?I'm working with alpine 3.7.
What did you do?
Working with this segment:
What did you expect to see?
Nothing as all good.
What did you see instead?
Compilation error as "undefined: C in C.char".
The text was updated successfully, but these errors were encountered: