为什么 VS Code C++ 说未指定路径?

问题描述

正在寻求有关此错误消息的帮助。 安装 VS Code 的 C++ 扩展,安装 MinGW-64,并设置环境路径变量,创建一个简单的 hello world 程序后,我收到以下特殊错误

C:\Users\oscar\Documents\Labs>cd "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/binc/Users/oscar/OneDrive/Documents/test/" && g++ helloworld.cpp -o helloworld && "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/binc/Users/oscar/OneDrive/Documents/test/"helloworld
The system cannot find the path specified.

注意事项: g++ 版本显示 8.1.0 和 使用 CodeRunner 扩展在终端中运行代码

解决方法

通过卸载并重新安装所有内容来修复