提示需要gcc,因此使用cygwin和mingw,两者报错内容大致一样。
使用cygwin报错如下:
\# webTest/controllers
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lcgo_api
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lcgo_api
collect2: error: ld returned 1 exit status
2016/11/24 11:09:16 [ERRO] ============== Build failed ===================
使用mingw报错如下:
\# webTest/controllers
C:/Program Files/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lcgo_api
C:/Program Files/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lcgo_api
collect2.exe: error: ld returned 1 exit status
2016/11/24 11:26:20 [ERRO] ============== Build failed ===================
有疑问加站长微信联系(非本文作者)