Build errors when trying to implement DCOPObject

kitts kitts at hotpop.com
Sun Jan 29 07:39:06 GMT 2006


I have just started experimenting with developing KDE based applications 
using KDevelop.

I am following a tutorial from KDE developers pages. So far along the way 
the problems i have faced have mostly been with libraries not included for 
the project. I have at each stage managed to discover the names of the 
libraries associated with the code and managed to come till here where i am 
stuck with implementing the DCOP interface.

In a file called kdesampleIface.h, trying to compile the following code;

#include <dcopobject.h>

class kdesampleIface
	:virtual public DCOPObject
{
	K_DCOP

	k_dcop:
			virtual void setURL(QString s)=0;
};

I get the errors;

cd '/media/sda6/Project/KDevelop/kdesample/debug' && WANT_AUTOCONF_2_5="1" 
WANT_AUTOMAKE_1_6="1" make -j1 
make all-recursive
Entering directory /media/sda6/Project/KDevelop/kdesample/debug
Making all in doc
Entering directory /media/sda6/Project/KDevelop/kdesample/debug/doc
Making all in .
Entering directory /media/sda6/Project/KDevelop/kdesample/debug/doc
make[3]: Nothing to be done for `all-am'.
Leaving directory /media/sda6/Project/KDevelop/kdesample/debug/doc
Making all in en
Entering directory /media/sda6/Project/KDevelop/kdesample/debug/doc/en
make[3]: Nothing to be done for `all'.
Leaving directory /media/sda6/Project/KDevelop/kdesample/debug/doc/en
Leaving directory /media/sda6/Project/KDevelop/kdesample/debug/doc
Making all in po
Entering directory /media/sda6/Project/KDevelop/kdesample/debug/po
make[2]: Nothing to be done for `all'.
Leaving directory /media/sda6/Project/KDevelop/kdesample/debug/po
Making all in src
Entering directory /media/sda6/Project/KDevelop/kdesample/debug/src
linking kdesample (libtool)
kdesample.moc.o:(.gnu.linkonce.r._ZTI9kdesample[typeinfo for 
kdesample]+0x28): undefined reference to `typeinfo for kdesampleIface'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0x38): undefined reference to `typeinfo for kdesampleIface'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0x40): undefined reference to 
`kdesampleIface::process(QCString const&, QMemArray<char> const&, 
QCString&, QMemArray<char>&)'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0x48): undefined reference to `kdesampleIface::functions()'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0x50): undefined reference to `kdesampleIface::interfaces()'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0xb8): undefined reference to `typeinfo for kdesampleIface'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0xd0): undefined reference to `virtual thunk to 
kdesampleIface::process(QCString const&, QMemArray<char> const&, QCString&, 
QMemArray<char>&)'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0xf0): undefined reference to `virtual thunk to 
kdesampleIface::interfaces()'
kdesample.moc.o:(.gnu.linkonce.r._ZTC9kdesample360_14kdesampleIface[vtable 
for kdesample]+0xf8): undefined reference to `virtual thunk to 
kdesampleIface::functions()'
kdesample.moc.o:(.gnu.linkonce.r._ZTV9kdesample[vtable for 
kdesample]+0x6d8): undefined reference to `kdesampleIface::process(QCString 
const&, QMemArray<char> const&, QCString&, QMemArray<char>&)'
kdesample.moc.o:(.gnu.linkonce.r._ZTV9kdesample[vtable for 
kdesample]+0x6e0): undefined reference to `kdesampleIface::functions()'
kdesample.moc.o:(.gnu.linkonce.r._ZTV9kdesample[vtable for 
kdesample]+0x6e8): undefined reference to `kdesampleIface::interfaces()'
kdesample.moc.o:(.gnu.linkonce.r._ZTV9kdesample[vtable for 
kdesample]+0x768): undefined reference to `virtual thunk to 
kdesampleIface::process(QCString const&, QMemArray<char> const&, QCString&, 
QMemArray<char>&)'
kdesample.moc.o:(.gnu.linkonce.r._ZTV9kdesample[vtable for 
kdesample]+0x788): undefined reference to `virtual thunk to 
kdesampleIface::interfaces()'
kdesample.moc.o:(.gnu.linkonce.r._ZTV9kdesample[vtable for 
kdesample]+0x790): undefined reference to `virtual thunk to 
kdesampleIface::functions()'
kdesample.moc.o: In function `~kdesampleIface':
../../src/kdesampleIface.h:12: undefined reference to `vtable for 
kdesampleIface'
../../src/kdesampleIface.h:12: undefined reference to `vtable for 
kdesampleIface
Leaving directory /media/sda6/Project/KDevelop/kdesample/debug/src
'
../../src/kdesampleIface.h:12: undefined reference to `vtable for 
kdesampleIface'
../../src/kdesampleIface.h:12: undefined reference to `vtable for 
kdesampleIface'
collect2: ld returned 1 exit status
Leaving directory /media/sda6/Project/KDevelop/kdesample/debug
make[2]: *** [kdesample] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Exited with status: 2 ***

How do i solve this problem? and how do i learn which library to include in 
the project? Can i not just ask it to include all libraries?

-- 
Cheers!
kitts


-
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