NOTE
cgo
1. Windows CGO 1. Install msys2 2. Install GCC toolchain 3. Test 2. References
This is a historical learning note and may contain outdated or incomplete understanding.
1. Windows CGO
- Install msys2 msys2.md (the related note has not been published yet)
- Install the GCC toolchain
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
- Test
go get github.com/faiface/pixel
cd $(go env GOPATH)/src/github.com/faiface/pixel/examples/platformer
go get
go build
./platformer.exe
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub