首页 > 解决方案 > Atom:使用 gcc for C++ 编译时出错

问题描述

我在 C++ 中运行了一个非常简单的程序,该程序main.cpp从命令行运行没有问题:

   g++ -o main main.cpp

在 Atom 中,我安装了gpp-compiler 3.0.7它不起作用,不生成可执行文件并且不返回错误

请给点建议好吗?

标签: c++gccatom-editor

解决方案


确保安装 MinGW 并将其添加到 PATH。您需要此插件才能正常运行。这是针对窗户的。对于 mac 和 linux,请访问:https ://github.com/kriscross07/atom-gpp-compiler


推荐阅读