-
Notifications
You must be signed in to change notification settings - Fork 18k
cgo: the type of export function is not expect. #42086
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
Comments
go1.13 is not supported anymore and therefore wont get any fixes. Please upgrade to go1.14 or go1.15 if it works there. Closing the issue for now. Please reopen if it is reproducable in the latest minor versions of go1.14 or go1.15. |
@martisch Could you paste the PR link on fixed this problem, thx. |
I do not have a PR link. From your report I understood its already fixed. Feel free to open the request if its unknown and important what fixed it so to bisect what fixed it or if you discover it needs a better test harness to have that as a feature request as it may have only been fixed accidentially. |
This is probably #31891. |
got it, thx. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
1.14.2 is ok.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The type of export function
process
generated by thego build -o cgo.so -buildmode=c-shared cgo.go
is not expect. It should beextern Response process(Request p0);
, but gotextern Response process(Response p0);
.cgo.go
What did you expect to see?
cgo.h
What did you see instead?
The text was updated successfully, but these errors were encountered: