samfang@samfang:~/qt$ qmake -project
samfang@samfang:~/qt$ qmake
samfang@samfang:~/qt$ make
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/local/qt/mkspecs/default -I. -I.
-I/usr/include/qt3 -o main.o main.cpp
g++ -o qt main.o -L/usr/X11R6/lib -lXext -lX11 -lm
main.o(.text+0x30): In function `main':
: undefined reference to `QApplication::QApplication[in-charge](int&, char**)'
main.o(.text+0x41): In function `main':
: undefined reference to `QString::QString[in-charge](char const*)'
main.o(.text+0x5f): In function `main':
: undefined reference to `QPushButton::QPushButton[in-charge](QString const&, QW
idget*, char const*)'
main.o(.text+0x74): In function `main':
: undefined reference to `QString::shared_null'
main.o(.text+0x7e): In function `main':
: undefined reference to `QStringData::deleteSelf()'
main.o(.text+0xa6): In function `main':
: undefined reference to `QPushButton::resize(int, int)'
main.o(.text+0xb2): In function `main':
: undefined reference to `QApplication::setMainWidget(QWidget*)'
main.o(.text+0xba): In function `main':
: undefined reference to `QWidget::show()'
main.o(.text+0xc2): In function `main':
: undefined reference to `QApplication::exec()'
main.o(.text+0xcc): In function `main':
: undefined reference to `QPushButton::~QPushButton [in-charge]()'
main.o(.text+0xd4): In function `main':
: undefined reference to `QApplication::~QApplication [in-charge]()'
main.o(.text+0x104): In function `main':
: undefined reference to `QApplication::~QApplication [in-charge]()'
main.o(.text+0x112): In function `main':
: undefined reference to `QString::shared_null'
main.o(.text+0x11c): In function `main':
: undefined reference to `QStringData::deleteSelf()'
main.o(.text+0x12: In function `main':
: undefined reference to `QPushButton::~QPushButton [in-charge]()'