AllenDang / w32

A wrapper of windows apis for the Go Programming Language.
Other
766 stars 247 forks source link

Cross Compile Instructions #35

Open kevinpostal opened 10 years ago

kevinpostal commented 10 years ago

Is there any way to use this library when cross compiling on another Operating System? IE. Linux

jamesbcook commented 10 years ago

@kevinpostal is this what you're looking for?

https://github.com/davecheney/golang-crosscompile

I use this to compile windows binaries on linux

obonyojimmy commented 7 years ago

you just need to set env variables GOOS GOARCHlike below command env GOOS=windows GOARCH=386 go get github.com/AllenDang/w32