我在在ubuntu 8.04下编译怎么老出错?问题如下,是什么问题请各位帮看看
Running build steps for project qttest...
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make -w
make: Entering directory `/home/feel/qttest/qttest'
g++ -Wl,-rpath,/home/feel/qtsdk/qt/lib -o qttest -L/home/feel/qtsdk/qt/lib -lQtGui -L/home/feel/qtsdk/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
make: g++: Command not found
make: Leaving directory `/home/feel/qttest/qttest'
make: *** [qttest] Error 127
Exited with code 2.
Error while building project qttest
When executing build step 'Make'
源码:
#include <QApplication>
#include <QPushbutton>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hellobtn( "Hello world!", 0 );
hellobtn.resize(100, 20 );
a.setMainWidget( &hellobtn );
hellobtn.show();
return a.exec();
}