编译C++。它显示致命错误:找不到目录。也没有为CPP文件形成Exe
在按下运行按钮时,它向我显示了这个错误。 作为初学者,我不知道下一步该怎么办。
On pressing the run button it is showing me this error.
As a beginner, I have no idea what should I do next.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的MINGW-W64设置似乎被打破了。
您可以通过从
如果仍然不起作用,请检查系统的路径环境变量。它可能指出,在错误的位置,GCC的依赖关系(DLL)的不同位置。
Your MinGW-w64 setup seems to be broken.
You can test this without touching your MSYS2 folder by extracting a standalone MinGW-w64 from https://winlibs.com/ to a different location and point your VSCode to that.
If that still doesn't work, check your system's PATH environment variable. It may be pointing to a different location picking up dependencies (DLLs) for GCC in the wrong place.