[英]C++ on VScode is not working when I run my code
So, I just recently started learning C++ and my cousin said that a good IDE was VScode.所以,我最近才开始学习 C++,我表弟说一个好的 IDE 是 VScode。 So, I installed VScode, downloaded the extensions that supported C++, and wrote my programs and got this:所以,我安装了 VScode,下载了支持 C++ 的扩展,并编写了我的程序并得到了这个:
"g++" is not recognized as an internal or external command.
what do I do here?我在这里做什么? I have looked at other questions that ask the same questions, but all of them mainly say to download a compiler like MinGW (Which I already have) and CygWin (also have downloaded this one).我看过其他提出相同问题的问题,但他们都主要说要下载像 MinGW(我已经拥有)和 CygWin(也已经下载了这个)这样的编译器。 So what do I do?那我该怎么办?
Based on the OS, you need to add path to g++ to PATH variable.根据操作系统,您需要将 g++ 的路径添加到 PATH 变量中。 Check ~/.profile file?检查 ~/.profile 文件?
Also check: https://github.com/microsoft/vscode-cmake-tools/issues/576还要检查: https://github.com/microsoft/vscode-cmake-tools/issues/576
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.