英文:
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
到目前为止,我尝试了以下方法:
- 重新启动VS Code
- 将
C:\TDM-GCC-64\bin\
添加到VS Code终端路径的顶部:
set PATH=C:\TDM-GCC-64\bin\;%PATH%
- 修改
.vscode\launch.json
文件如下:
{
"version": "0.2.0",
"configurations": [],
"environment": [{"name": "Path", "value": "C:\\TDM-GCC-64\\bin;${env:Path};&"}],
}
还有什么其他方法可以尝试?
英文:
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
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%
- Modifying
.vscode\launch.json
like this:
{
"version": "0.2.0",
"configurations": [],
"environment": [{"name": "Path", "value": "C:\\TDM-GCC-64\\bin;${env:Path};"}],
}
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论