我在Solaris下编译Qt3的程序均不成功,程序都是书上的例子应该不会出错,例如我编译一下代码:
#include <qapplication.h>
#include <qpushbutton.h>
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();
}
放在一个main.cpp的文件里,然后又写了test.pro文件
SOURCES = main.cpp
CONFIG += qt warn_on release
然后qmake -o Makefile test.pro 没有出错
qmake
但是make的时候出错了,

sun1:scbj:> qmake test.pro
sun1:scbj:> qmake
sun1:scbj:> make
CC -xarch=v9 -o test main.o -R/opt/qt/lib -L/opt/qt/lib -L/usr/openwin/lib -lqt -lXext -lX11 -lresolv -lsocket -lnsl
ld: : -lqt:
ld: : test
*** Error code 1
make: Fatal error: Command failed for target `test'
请问怎么回事呀