标题:新手遇到编译helloworld出错问题!
作者:ywlcnlan
日期:2006-07-28 12:03
内容:
源码:
/****************************************************************
**
** Qt教程一 - 2
**
****************************************************************/
#include
#include
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();
}
写完后我用一下命令编译:
qmake -project helloworld
qmake
当执行make的时候报错
报错信息:
make[49]: Leaving directory `/home/ywlcn/QT-c'
make[48]: *** 错误 2
make[48]: Leaving directory `/home/ywlcn/QT-c'
make[47]: *** 错误 2
make[47]: Leaving directory `/home/ywlcn/QT-c'
make[46]: *** 错误 2
make[46]: Leaving directory `/home/ywlcn/QT-c'
make[45]: *** 错误 2
make[45]: Leaving directory `/home/ywlcn/QT-c'
make[44]: *** 错误 2
make[44]: Leaving directory `/home/ywlcn/QT-c'
make[43]: *** 错误 2
make[43]: Leaving directory `/home/ywlcn/QT-c'
make[42]: *** 错误 2
make[42]: Leaving directory `/home/ywlcn/QT-c'
make[41]: *** 错误 2
make[41]: Leaving directory `/home/ywlcn/QT-c'
make[40]: *** 错误 2
make[40]: Leaving directory `/home/ywlcn/QT-c'
make[39]: *** 错误 2
make[39]: Leaving directory `/home/ywlcn/QT-c'
make[38]: *** 错误 2
make[38]: Leaving directory `/home/ywlcn/QT-c'
make[37]: *** [sub-QT-c_ ..