我想学围棋。我在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有人知道哪里出了问题吗?
发布于 2019-12-30 09:15:59
这似乎是Go v1.13的一个常见问题。您可以尝试执行干净的卸载并重新安装。参见this post。
https://stackoverflow.com/questions/59524634
复制相似问题