在windows 中編譯 go 的pipe時因爲pipe依賴sqlite,須要經過cgo進行編譯。出現以下異常sql
gcc.exe fatal error no input files compilation terminated
windows
因爲 windows中缺乏c 的編譯環境ui
安裝gcc環境.net
選擇最新版本便可,建議使用 Thread model: posixsqlite
配置完成後,嘗試編譯,若是還出現異常,請從新啓動機器blog
變量名稱:C_INCLUDE_PATH 路徑:D:\Program Files\MinGw\x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0 (1)\mingw64\includeip