【发布时间】:2012-09-17 23:08:55
【问题描述】:
我目前正在运行g++ 版本4.3.4,当我运行以下命令时:
g++ -g -Wall test.cpp -o test.exe
关于这个:
#include<stdlib.h>
#include<iostream>
using namespace std;
int main (){
cout << "Hello World!";
system("pause");
return 0;
}
似乎什么都没有发生:Cygwin 似乎滞后了一会儿,但没有创建 exe(如果 cpp 源中有错误,则会显示)
还有什么想法?
【问题讨论】:
-
没有test.exe文件的证据是什么?您是搜索它还是只输入“测试”?根据您的路径设置,后者可能会调用另一个“测试”......永远不要为您的可执行文件使用名称“测试”!
标签: c++ compiler-construction g++