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
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:
C:\TDM-GCC-64\bin\
to the top of the VS Code terminal path:set PATH=C:\TDM-GCC-64\bin\;%PATH%
.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?
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.