首页| 论坛| 消息

标题:【提问】为什么编译后没有exe文件
作者:pantierui
日期:2006-01-23 11:38
内容:

1.hello.cpp:
#include
#include
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}

2.hello.pro:
TEMPLATE = app
DESTDIR= E:\hello
SOURCES += hello.cpp
CONFIG+= qt warn_on release
3.qmake -o Makefile hello.pro
当我执行完qmake -p Makefile hello.pro后产生了相关的文件和目录就是没有exe文件.
请问这是为什么??
谢谢.


#1 [XChinux 01-23 12:43]
你还没编译呢,运行
make进行编译
#2 [pantierui 01-23 13:27]
谢谢
好用了.
不过为什么qmake自动生成的.pro文件和makefile文件一编译就出错啊
#3 [XChinux 01-23 13:31]
为何出错??把错误提示列出来
#4 [pantierui 01-23 13:59]
怎么看报的错误啊
我刚刚接触make
#5 [pantierui 01-23 14:04]
Updating goal targets....
File `first' does not exist.
File `FORCE' does not exist.
Must remake target `FORCE'.
Successfully remade target file `FORCE'.
Prerequisite `FORCE' of target `debug' does not exist.
Must remake target `debug'.

<< 1 2 >> (1/2)

回复 发表
主题 版块