cc1.exe: 抱歉,未实现:未编译为64位模式。

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

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

问题

命令提示符上的错误已解决

之前,在命令提示符上我收到了这个错误,但是通过这种方法解决了:

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

如何解决VS Code调试器的错误

现在,VS Code调试器也出现了同样的错误:

> # runtime/cgo
>
> cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
>
> exit status 2
>
> Process exiting with code: 1

cc1.exe: 抱歉,未实现:未编译为64位模式。

到目前为止,我尝试了以下方法:

  • 重新启动VS Code
  • C:\TDM-GCC-64\bin\添加到VS Code终端路径的顶部:
set PATH=C:\TDM-GCC-64\bin\;%PATH%

cc1.exe: 抱歉,未实现:未编译为64位模式。

  • 修改.vscode\launch.json文件如下:
{
    "version": "0.2.0",
    "configurations": [],
    "environment": [{"name": "Path", "value":  "C:\\TDM-GCC-64\\bin;${env:Path};&"}],
}

cc1.exe: 抱歉,未实现:未编译为64位模式。

还有什么其他方法可以尝试?

英文:

Error is resolved on Command Prompt

Previously, I was receiving this error on Command Prompt, but was resolved by this approach:

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

How to resolve error for VS Code debugger

Now, VS Code debugger is throwing the same error:

> # runtime/cgo
>
> cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
>
> exit status 2
>
> Process exiting with code: 1

cc1.exe: 抱歉,未实现:未编译为64位模式。

So far I tried:

  • Restarting VS Code
  • Adding C:\TDM-GCC-64\bin\ to the top of the VS Code terminal path:
set PATH=C:\TDM-GCC-64\bin\;%PATH%

cc1.exe: 抱歉,未实现:未编译为64位模式。

  • Modifying .vscode\launch.json like this:
{
    "version": "0.2.0",
    "configurations": [],
    "environment": [{"name": "Path", "value":  "C:\\TDM-GCC-64\\bin;${env:Path};"}],
}

cc1.exe: 抱歉,未实现:未编译为64位模式。

What else can I try?

答案1

得分: -1

根据 @rustyx 的建议,重新启动计算机解决了这个问题。我不太清楚为什么需要重新启动才能使 VS Code 调试器正常工作。

英文:

As suggested by @rustyx a computer reboot resolved the problem. I don't exactly know why a reboot is needed for VS Code debugger to work.

huangapple
  • 本文由 发表于 2021年6月1日 17:47:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/67786537.html
匿名

发表评论

匿名网友

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

确定