Skip to content
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

-buildmode=c-shared not supported on windows/amd64 #25155

Closed
daodol opened this issue Apr 29, 2018 · 4 comments
Closed

-buildmode=c-shared not supported on windows/amd64 #25155

daodol opened this issue Apr 29, 2018 · 4 comments

Comments

@daodol
Copy link

daodol commented Apr 29, 2018

Please answer these questions before submitting your issue. Thanks!

-buildmode=c-shared not supported on windows/amd64

What version of Go are you using (go version)?

go version go1.9.3 windows

@AlexRouSg
Copy link
Contributor

AlexRouSg commented Apr 29, 2018

Support was added in go 1.10 please update your go installation

@daodol
Copy link
Author

daodol commented Apr 29, 2018

Wow, it's very cool.I see an example of golang generating a local binary file by introducing a "net" package, and then when c++ calls the DLL, it also needs to introduce a header file, which can not generate the same DLL as c++ with go, and do not need to introduce such types as "GoString" and so on.

@AlekSi
Copy link
Contributor

AlekSi commented Apr 29, 2018

You may want to set environment variable CGO_ENABLED to 0 to avoid C dependency:

Also, note that issue tracker is not for questions: https://github.com/golang/go/wiki/Questions.

@ALTree
Copy link
Member

ALTree commented Apr 29, 2018

What AlekSi said. My suggestion is to ask for guidance in one of the places linked above. If it turns out this is a Go bug, comment here and we'll reopen.

@ALTree ALTree closed this as completed Apr 29, 2018
@golang golang locked and limited conversation to collaborators Apr 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants