我在使用 VS Code 执行c++20的code时遇见了这样的错误:
ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run”. During startup program exited with code 0xc0000139.
由于关键字的问题让我找了很久才找到答案,发现是类似dll的不相容所导致的,原因是我原先想使用Vscode来编写Qt,因此将Qt本身附带的 mingw/bin 也加入了环境变数,删掉以后就能够正常执行了。
花了挺久的时间,分享一下,希望能帮助到有相同问题的人。
参考来源:
1. VS Code配置C++环境第一次使用string等变量调试报错:Unable to start debugging. Unexpected GDB output from command
2. the procedure entry point __gxx_personality_v0 could not be located