go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

  问题一:cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

  参考:https://www.cnblogs.com/lesroad/p/10714367.html ,说明mingw需要安装64位的。

  参考:https://www.cnblogs.com/ggg-327931457/p/9694516.html ,下载安装mingw 64的,安装时每个选项什么意思,这篇博客写的非常清楚。

  问题二:安装mingw-w64-install.exe 报错 ERROR res

  go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

  百度发现mingw-w64下载源bugs中有人提出这个问题(地址:https://sourceforge.net/p/mingw-w64/bugs/413/),频率挺高的,耐心地一个个看,终于看到一个解决方案:

go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

  链接到https://sourceforge.net/p/mingw-w64/mailman/message/32967954/ 发现gcc版本都是4.9.1,不是按照默认的最高版本(8.1.0):

  go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

  于是,安装时版本选择了这个4.9.1尝试下:

  go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

  果然,安装成功了!

  配置环境变量,gcc -v测试:

  go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

  再执行go命令,完美运行~

 

上一篇:HTTP Status 406 – Not Acceptable


下一篇:488. 祖玛游戏