c++ - Atom:使用 gcc for C++ 编译时出错
问题描述
我在 C++ 中运行了一个非常简单的程序,该程序main.cpp
从命令行运行没有问题:
g++ -o main main.cpp
在 Atom 中,我安装了gpp-compiler 3.0.7
它不起作用,不生成可执行文件并且不返回错误
请给点建议好吗?
解决方案
确保安装 MinGW 并将其添加到 PATH。您需要此插件才能正常运行。这是针对窗户的。对于 mac 和 linux,请访问:https ://github.com/kriscross07/atom-gpp-compiler
推荐阅读
- ruby - 如何合并数组内的哈希?
- javascript - Vue.js 在更改键后没有响应鼠标事件
- apache-camel - 如何使用 Apache Camel Routes 执行 Arquillian 测试
- swift - 表视图委托内的集合视图
- javascript - Javascript - 使用箭头函数重写 for 循环?
- database - DolphinDB 在重新分配未定义的变量时抛出异常
- mysql - 列定义中 TIMESTAMP 之后的值是什么意思?
- mysql - 在 MySQL 中查找具有相同值的列
- vbscript - 如何将文件保存在具有先前日期的vbscript中
- ios - 根据最高子视图按钮自动调整超级视图高度