All pastes #462662 Raw Edit

Something

public text v1 · immutable
#462662 ·published 2007-04-28 13:11 UTC
rendered paste body
rikkit@rikkit:~$ cd /home/rikkit/qt/
rikkit@rikkit:~/qt$ qmake -project
rikkit@rikkit:~/qt$ qmake qt.pro 
rikkit@rikkit:~/qt$ make
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT  -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o hello.o hello.cpp
g++  -o qt hello.o    -L/usr/X11R6/lib -lXext -lX11 -lm -lpthread
hello.o: In function `main':
hello.cpp:(.text+0x31): undefined reference to `QApplication::QApplication(int&, char**)'
hello.cpp:(.text+0x41): undefined reference to `QString::QString(char const*)'
hello.cpp:(.text+0x73): undefined reference to `QLabel::QLabel(QString const&, QWidget*, char const*, unsigned int)'
hello.cpp:(.text+0x87): undefined reference to `QString::shared_null'
hello.cpp:(.text+0x91): undefined reference to `QStringData::deleteSelf()'
hello.cpp:(.text+0x9d): undefined reference to `QApplication::setMainWidget(QWidget*)'
hello.cpp:(.text+0xb0): undefined reference to `QApplication::exec()'
hello.cpp:(.text+0xba): undefined reference to `QApplication::~QApplication()'
hello.cpp:(.text+0xed): undefined reference to `QString::shared_null'
hello.cpp:(.text+0xf7): undefined reference to `QStringData::deleteSelf()'
hello.cpp:(.text+0xff): undefined reference to `QApplication::~QApplication()'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0xc): undefined reference to `QGList::clear()'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0x10): undefined reference to `QGList::~QGList()'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0x14): undefined reference to `QGList::~QGList()'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0x18): undefined reference to `QPtrCollection::newItem(void*)'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0x20): undefined reference to `QGList::compareItems(void*, void*)'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0x24): undefined reference to `QGList::read(QDataStream&, void*&)'
hello.o:(.rodata._ZTV6QGList[vtable for QGList]+0x28): undefined reference to `QGList::write(QDataStream&, void*) const'
hello.o:(.rodata._ZTI6QGList[typeinfo for QGList]+0x8): undefined reference to `typeinfo for QPtrCollection'
collect2: выполнение ld завершилось с кодом возврата 1
make: *** [qt] Ошибка 1