Problem linking with qetxmdi

Carlos Perez fireant at bellsouth.net
Tue Jan 18 22:02:25 GMT 2000


I'm writing an application using Kdevelop in my Mk 6.1 system.  I
recently
installed qextmdi but cant get my app to link with it.  This is my first

Linux application so the answer to my problem might be very simple.  I
added
-lqextmdi tp my libraries in my project options.  Any suggestions?

Thanks in advance...

This is what I get when I try to compile it with Kdevelop:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
socketdlgdata.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
socketdlg.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
serialport.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
serialdlgdata.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
serialdlg.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
modem.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
tabprocessingeditwidget.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
mdiframeworkview.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
mdiframeworkdoc.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
mdiframework.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-2.0.2/include
-I/usr/X11R6/include
-O0 -g3 -Wall   -I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib  -c
main.cpp
/bin/sh ../libtool --silent --mode=link g++  -O0 -g3 -Wall
-I/usr/lib/qextmdi/include -L/usr/lib/qextmdi/lib    -o commhost
-L/usr/lib/qt-2.0.2/lib  -L/usr/X11R6/lib  socketdlgdata.o socketdlg.o
serialport.o serialdlgdata.o serialdlg.o modem.o
tabprocessingeditwidget.o
mdiframeworkview.o mdiframeworkdoc.o mdiframework.o main.o -lqextmdi
-lqt -lXext
-lX11
socketdlg.o: In function `SocketDlg::SocketDlg(QWidget *, char const
*)':
/root/commhost/commhost/socketdlg.cpp:28: undefined reference to
`SocketDlg::QPaintDevice virtual table'
/root/commhost/commhost/socketdlg.cpp:28: undefined reference to
`SocketDlg
virtual table'
socketdlg.o: In function `SocketDlg::~SocketDlg(void)':
/root/commhost/commhost/socketdlg.cpp:34: undefined reference to
`SocketDlg::QPaintDevice virtual table'
/root/commhost/commhost/socketdlg.cpp:34: undefined reference to
`SocketDlg
virtual table'
serialport.o: In function `QShared::ref(void)':
/usr/lib/qt-2.0.2/include/qshared.h(.text+0x1e): undefined reference to
`SerialPort::QPaintDevice virtual table'
/usr/lib/qt-2.0.2/include/qshared.h(.text+0x25): undefined reference to
`SerialPort virtual table'
serialport.o: In function `SerialPort::~SerialPort(void)':
/root/commhost/commhost/serialport.cpp:42: undefined reference to
`SerialPort::QPaintDevice virtual table'
/root/commhost/commhost/serialport.cpp:42: undefined reference to
`SerialPort
virtual table'
serialport.o: In function `SerialPort::SendSignal(e_CommEvent)':
/root/commhost/commhost/serialport.cpp:319: undefined reference to
`SerialPort::OnComm(e_CommEvent)'
serialdlg.o: In function `SerialDlg::SerialDlg(QWidget *, char const
*)':
/root/commhost/commhost/serialdlg.cpp:28: undefined reference to
`SerialDlg::QPaintDevice virtual table'
/root/commhost/commhost/serialdlg.cpp:28: undefined reference to
`SerialDlg
virtual table'
serialdlg.o: In function `SerialDlg::~SerialDlg(void)':
/root/commhost/commhost/serialdlg.cpp:38: undefined reference to
`SerialDlg::QPaintDevice virtual table'
/root/commhost/commhost/serialdlg.cpp:38: undefined reference to
`SerialDlg
virtual table'
modem.o: In function `Modem type_info function':
/root/commhost/commhost/modem.cpp:107: undefined reference to
`SerialPort
type_info function'
modem.o: In function `QShared::deref(void)':
/usr/lib/qt-2.0.2/include/qcstring.h(.rodata+0x54): undefined reference
to
`SerialPort::metaObject(void) const'
/usr/lib/qt-2.0.2/include/qcstring.h(.rodata+0x58): undefined reference
to
`SerialPort::className(void) const'
modem.o: In function `Modem::~Modem(void)':
/root/commhost/commhost/modem.cpp:31: undefined reference to
`SerialPort::initMetaObject(void)'
modem.o: In function `Modem::Dial(char const *)':
/root/commhost/commhost/modem.cpp:84: undefined reference to
`SerialPort::SetBauds(e_Bauds)'
/root/commhost/commhost/modem.cpp:84: undefined reference to
`SerialPort::SetBytes(e_ByteSize)'
/root/commhost/commhost/modem.cpp:84: undefined reference to
`SerialPort::SetParity(e_Parity)'
/root/commhost/commhost/modem.cpp:84: undefined reference to
`SerialPort::SetStopBits(e_StopBits)'
/root/commhost/commhost/modem.cpp:84: undefined reference to
`SerialPort::SetFlowCtrl(e_FlowCtrl)'
/root/commhost/commhost/modem.cpp:84: undefined reference to `SerialPort
type_info
node'
mdiframeworkview.o: In function `QShared::deref(void)':
/usr/lib/qt-2.0.2/include/qstring.h(.text+0x20): undefined reference to
`MDIFrameWorkView::QPaintDevice virtual table'
/usr/lib/qt-2.0.2/include/qstring.h(.text+0x27): undefined reference to
`MDIFrameWorkView virtual table'
mdiframeworkview.o: In function
`MDIFrameWorkView::~MDIFrameWorkView(void)':
/root/commhost/commhost/mdiframeworkview.cpp:38: undefined reference to
`MDIFrameWorkView::QPaintDevice virtual table'
/root/commhost/commhost/mdiframeworkview.cpp:38: undefined reference to
`MDIFrameWorkView virtual table'
mdiframeworkdoc.o: In function `MDIFrameWorkDoc::MDIFrameWorkDoc(void)':

/root/commhost/commhost/mdiframeworkdoc.cpp:17: undefined reference to
`MDIFrameWorkDoc virtual table'
mdiframeworkdoc.o: In function
`MDIFrameWorkDoc::~MDIFrameWorkDoc(void)':
/root/commhost/commhost/mdiframeworkdoc.cpp:22: undefined reference to
`MDIFrameWorkDoc virtual table'
mdiframeworkdoc.o: In function `MDIFrameWorkDoc::load(QString const &)':

/root/commhost/commhost/mdiframeworkdoc.cpp:41: undefined reference to
`MDIFrameWorkDoc::documentChanged(void)'
mdiframework.o: In function `QShared::ref(void)':
/usr/lib/qt-2.0.2/include/qshared.h(.text+0x1f): undefined reference to
`MDIFrameWork::QPaintDevice virtual table'
/usr/lib/qt-2.0.2/include/qshared.h(.text+0x26): undefined reference to
`MDIFrameWork virtual table'
mdiframework.o: In function `MDIFrameWork::~MDIFrameWork(void)':
/root/commhost/commhost/mdiframework.cpp:38: undefined reference to
`MDIFrameWork::QPaintDevice virtual table'
/root/commhost/commhost/mdiframework.cpp:38: undefined reference to
`MDIFrameWork
virtual table'
collect2: ld returned 1 exit status
gmake: *** [commhost] Error 1
*** failed ***
-------------------------------------------------------







More information about the KDevelop mailing list