exec: “gcc”: executable file not found in %PATH% when trying go build

golang windows下碰到 exec: “gcc”: executable file not found in %PATH% when trying go build 怎么办?

安装TDM-GCC

地址:

http://tdm-gcc.tdragon.net/download