Cgo + Windows + Mingw-w64: “抱歉,未实现:未编译64位模式”

huangapple go评论87阅读模式
英文:

Cgo + windows + mingw-w64 : "sorry, unimplemented: 64-bit mode not compiled in"

问题

在尝试在Windows 8.1上使用以下命令安装suapapa/go_sass时:

go get github.com/suapapa/go_sass

我遇到了以下错误:

> cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

根据stackoverflow和其他论坛的说法,这个问题是因为我没有正确的mingw版本(如果我理解错了,请纠正我)。我的go版本是1.3.3 windows/amd64。

所以我尝试安装了一个我在http://tdm-gcc.tdragon.net/上找到的64位版本的gcc。

我仍然无法安装我想要的包。有什么帮助吗?我对C编译器一点都不熟悉。

英文:

While trying to install suapapa/go_sass on windows 8.1 with the command :

go get github.com/suapapa/go_sass

I came across this error :

> cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

According to stackoverflow and other forums, this problem comes from the fact that i don't have the right mingw version (correct me if i'm wrong). My go version is 1.3.3 windows/amd64.

So i tried installing a 64 bit version of gcc that i found on http://tdm-gcc.tdragon.net/.

I still can't seem to go get the package i want to install. Any help ? I'm not familiar with c compilers at all.

答案1

得分: 1

在安装mingw-64的过程中,你应该像我一样选择架构"i686"。
如果是这样,架构"x86_64"应该可以工作。

英文:

In the installation process of mingw-64,you should select Architecture "i686" as I did.
If so, the architecture "x86_64" should work.

huangapple
  • 本文由 发表于 2015年9月5日 21:37:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/32413682.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定