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 访问成功。
本文讲述了在Windows环境下遇到GORM示例错误,通过下载并安装GCC9版本,最终修复了'gcc not found'问题,确保了使用SQLite3的顺利。
8万+

被折叠的 条评论
为什么被折叠?



