NOTE

cgo

1. Windows CGO 1. Install msys2 2. Install GCC toolchain 3. Test 2. References

Go1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. Windows CGO

  1. Install msys2 msys2.md (the related note has not been published yet)
  2. Install the GCC toolchain
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
  1. Test
go get github.com/faiface/pixel
cd $(go env GOPATH)/src/github.com/faiface/pixel/examples/platformer
go get
go build
./platformer.exe

2. References

Go development environment on Windows with MSYS2 · GitHub

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub