繁体   English   中英

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

[英]Why am I getting redeclared errors when trying to build any Go program?

我想学围棋。 我在 64 位 Windows 10 上安装了 Go 1.13.5。我开始尝试构建以下 hello world 程序:

package hello

import ("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:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
        previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
        previous declaration at c:\go\src\runtime\alg.go:329:40

有谁知道出了什么问题?

这似乎是 Go v1.13 的常见问题。 您可以尝试彻底卸载并重新安装。 看到这个帖子

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM