-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link: panic opening c-shared DLL on windows #26084
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
Does that work with 1.10? It's odd to use |
I'm pretty sure that won't work because the C DLL is getting a copy of the Go runtime embedded in it. The Go runtime does some stuff with thread local storage. So the DLL's copy of the runtime is going to fight with the process's version of the runtime. I think we talked about this in some other thread in the context of Go "plugins". |
Is this duplicate of #22192 ?
Looks silly, but I don't think it matters. Does it matter to your case? Alex |
Closing as dup of #22192. |
What version of Go are you using (
go version
)?go version go1.11beta1 linux/amd64
Does this issue reproduce with the latest release?
idk
What operating system and processor architecture are you using (
go env
)?What did you do?
loader.go:
main.go:
Building:
GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go11 build -buildmode=c-shared -o main.dll main.go
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: