簡體   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