Skip to content

Instantly share code, notes, and snippets.

@samonzeweb
Created October 24, 2017 11:04
Show Gist options
  • Select an option

  • Save samonzeweb/05273724fcd3604011fa42984e5ff177 to your computer and use it in GitHub Desktop.

Select an option

Save samonzeweb/05273724fcd3604011fa42984e5ff177 to your computer and use it in GitHub Desktop.
Testing godb on windows (gcc required for sqlite3)
Testing godb ( https://github.com/samonzeweb/godb ) on MS Windows
(cgo/gcc related to github.com/mattn/go-sqlite3)
Source : https://github.com/mattn/go-sqlite3/issues/212#issuecomment-185036480
Install MSYS2 (64 bits)
- http://www.msys2.org/
- https://github.com/msys2/msys2/wiki/MSYS2-installation
Start the MSYS Console (two times after install, please read the installation notes) and update packages :
pacman -Syuu
Start (again) MSYS Console and (use your GOPATH) ...
pacman -S mingw-w64-x86_64-gcc
pacman -S msys/git
export PATH="/c/Go/bin:$PATH"
export GOPATH=...
go get -u github.com/mattn/go-sqlite3
Via CMD :
go test -ldflags="-linkmode=internal -extld=none"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment