为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我在尝试构建任何 Go 程序时会收到重新声明的错误?

为什么我在尝试构建任何 Go 程序时会收到重新声明的错误?

Go
白衣染霜花 2023-08-14 17:01:44
我想学围棋。我在 64 位 Windows 10 上安装了 Go 1.13.5。我开始尝试构建以下 hello world 程序:package helloimport ("fmt")func main() {    fmt.Printf("Hello world!")}但是,当我尝试构建它或任何其他 Go 程序时,我收到错误c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block        previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block        previous declaration at c:\go\src\runtime\alg.go:321:40c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block        previous declaration at c:\go\src\runtime\alg.go:329:40有谁知道出了什么问题?
查看完整描述

1 回答

?
慕容708150

TA贡献1831条经验 获得超4个赞

这似乎是 Go v1.13 的常见问题。您可以尝试完全卸载并重新安装。


查看完整回答
反对 回复 2023-08-14
  • 1 回答
  • 0 关注
  • 69 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信