dongpu6141 2019-01-27 19:42
浏览 47
已采纳

转到构建错误:转到工具:没有此类工具“链接”

After command:

  go build

It shows an error:

 go tool: no such tool "link"

Details: my system is windows 10 -> 64 bits

go version: 1.11.5 
go env -> 
set GOARCH=386
set GOBIN=
set GOCACHE=c:\users\john\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=E:\codigo
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_386
set GCCGO=gccgo
set GO386=sse2
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CPFLAGS=-g -02
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -02
set CGO_FFLAGS=-g -02
set CGO_LDFLAGS=-g -02
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m32 -mtherads -fno-caret-diagnotics -Qunused-arguments -fmsessage-length=0 -fdebug-prefix-map=C:\USers\john\ApddData\Local\temp\go-build126731998=/tmp/go-build -gno-record-gcc-switches

I' not pretty sure what could be happening because this is the first time it happends to me, I just change my operating system(before was windows 7) and updated to windows 10 with all the recently updates.After that I install go and when I try to build my code, it shows the error

  • 写回答

1条回答 默认 最新

  • dongrang9300 2019-01-27 20:32
    关注

    It turns out I downloaded go for 32 bits, but my machine is 64 bits, so I just download go for 64 bits and it worked

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用verilog实现tanh函数和softplus函数
  • ¥15 求京东批量付款能替代天诚
  • ¥15 slaris 系统断电后,重新开机后一直自动重启
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站
  • ¥15 滑块验证码移动速度不一致问题
  • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含