在red hat9.0下运行下面的qt程序,怎么运行不出来啊?
我可是照教材打的啊,郁闷,高手门给点指点吧!
#include<qapplication.h>
#include<qwidget.h>
#include<qpushbutton.h>
int main(int argc,char **argv)
{
QApplication a(argc,argv);
QWidget mainwindow;
mainwindow.setMinimumsize(200,100);
mainwindow.setMaximumsize(200,100);
QPushButton helloword("hello word",&mainwindow);
helloworld.setGeometry(20,20,160,60);
a.setMainWidget(&mainwindow);
mainwindow.show();
return a.exec();
}
qmake -project跟qmake后Makefile跟*。pro文件都有了,但是运行的时候出现下列错误:
g++ -c -pipe Wall -W -o2 -march=i386 -mopu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use
-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt -3.1/mkspecs/default -I.-I.-I
/firendly-arm/x86 -qtopia/qt/include -o zh.o zh.cpp
g++ -o zh zh.o -L/friendly-arm/x86-qtopia/qt/lib -L/usr/x11R6/lib -lqt-mt -lxext -lx11 -lm
/usr/bin/ld:cannot find -lqt-mnt
collect2:ls returned 1 exit status
make: ***[zh] error 1
哪里有问题啊!我是初学者,菜鸟问题不要笑我啊 呵呵!!!