当我尝试通过g ++编译器中的atom编译c ++文件时,为什么会出现以下错误?

问题描述 投票:-2回答:1

我在Atom文本编辑器中安装了“外部打开”程序包。我正在使用C ++的g ++编译器。当我尝试运行它时(Ctrl + Shift + b),它显示错误:

g++: error: /mnt/c/Users/there/.atom/packages/external-open/test101.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
[Finished in 0.097s]

我的代码如下:

#include <iostream>
using namespace std;
int main() {
  cout << "Hello World";
}

有人知道如何解决这个问题吗?

谢谢!

c++ g++ atom-editor
1个回答
0
投票

您的程序是正确的。我建议您使用CLion或VS Code进行编码。但您必须通过以下链接:-https://blog.jueezy.rocks/vscode

可能是choco命令已过时,但您可以从其网站上获取。

© www.soinside.com 2019 - 2024. All rights reserved.