Open BaseMax opened 3 years ago
Have you tried with CGO_ENABLED=1
?
E.g.:
env GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build ....
cc @andelf
@abelhoula I haven't written in Go for some years. Will try to find a Windows machine and check this. Thanks for your report.
wondering if this issue was fixed or not ?
Hi everyone Why cannot compile program for windows, while this works as well for Linux?
This library have neutralized the language cross platform supporting? Or i miss something?
[max@base test-program]$ env GOOS=windows GOARCH=amd64 go build
[max@base test-program]$ env GOOS=windows GOARCH=386 go build
[max@base test-program]$ env GOOS=linux GOARCH=amd64 go build
[max@base test-program]$ cat go.mod
[max@base test-program]$ cat go.sum
main.go source code:
[max@base test-program]$ go version
[max@base test-program]$ uname -a
[max@base test-program]$ curl --version
[max@base test-program]$ yay mingw