windows gcc 安装
场景: gorm 例子报错
Build Error: go build -o d:\Go\gorm\__debug_bin.exe -gcflags all=-N -l .
# runtime/cgo
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH% (exit status 2)
GCC 搜索
https://gcc.gnu.org/
https://osdn.net/projects/mingw/
https://osdn.net/projects/mingw/
下载 安装gcc 9
重新运行gorm 例子
sqlite3 访问成功。