ubuntu下交叉编译go sqlite到windows

sudo apt-get install mingw-w64
CGO_ENABLED=1    CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build main.go
posted @ 2020-08-24 08:59  半山th  阅读(269)  评论(0编辑  收藏  举报