NOTE
cgo
Using cgo on Windows requires a toolchain such as MSYS2 and GCC. These notes record setup steps and Go-to-C usage.
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
2. References
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub