Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Errors cross compile to windows 64 #303
apt-get install gcc-multilib apt-get install gcc-mingw-w64
After that I use this command to compile
GOOS=windows GOARCH=386 CGO_ENABLED=1 CXX_FOR_TARGET=i686-w64-mingw32-g++ CC_FOR_TARGET=i686-w64-mingw32-gcc go build
This works for me.