(OT) QThread, does it work?
Tobias Erbsland
te at profzone.ch
Thu Mar 22 00:14:33 GMT 2001
I had tried not for 2 hours compile a small project with a QThread class:
class ServerThread : public QThread
{
public:
virtual void run();
}
But the liker failed every time, telling me her doesn't find
"QThread::start()" etc...
--- snip
g++ -g -ansi -D_XOPEN_SOURCE -D_BSD_SOURCE -Wbad-function-cast -Wcast-align
-Wundef -Wconversion -fno-exceptions -fno-check-new -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
-Wnon-virtual-dtor -fno-builtin -o noctula_server base64.o serverthread.o
serverstartwindow.o main.o serverthread.moc.o serverstartwindow.moc.o
-L/usr/X11R6/lib -L/usr/lib/qt2/lib -lqt-mt -lpng -lz -lm /usr/lib/libjpeg.so
-lXext -lX11 -lSM -lICE
serverstartwindow.o: In function `ServerStartWindow::start(void)':
/home/drzoom/Entwicklung/noctula_server/noctula/serverstartwindow.cpp:77:
undefined reference to `QThread::start(void)'
serverstartwindow.o: In function `QShared::deref(void)':
/home/drzoom/Entwicklung/noctula_server/noctula/serverstartwindow.cpp(.ServerThread::gnu.linkonce.t.(void)+0x22):
undefined reference to `QThread::QThread(void)'
serverthread.moc.o: In function `ServerThread::staticMetaObject(void)':
/home/drzoom/Entwicklung/noctula_server/noctula/serverthread.moc.cpp:68:
undefined reference to `QThread type_info node'
serverthread.moc.o: In function `ServerThread::initMetaObject(void)':
/home/drzoom/Entwicklung/noctula_server/noctula/serverthread.moc.cpp:30:
undefined reference to `QThread::~QThread(void)'
serverthread.moc.o: In function `ServerThread::metaObject(void) const':
/usr/lib/qt2/include/qcstring.h(.gnu.linkonce.t.__tf12ServerThread+0x11):
undefined reference to `QThread type_info function'
collect2: ld returned 1 exit status
--- snip
I used the --enable-mt option with ./configure.
Hope someone can help me, i tried many things but nothing seems solve the
problem.
(first i got the problem qith qt-2.2.4, now i switched to qt-2.3 with the
same problems.)
regards
Tobias
--
Tobias Erbsland | Haupstrasse 6 | 4565 Recherswil
te at profzone.ch | +41 (0)32 675 67 38 | Switzerland
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list