[Kde-devel-es] Errores de linkado

Xpctro xpctro at ya.com
Thu Sep 11 20:49:47 CEST 2003


El Miércoles, 3 de Septiembre de 2003 20:43, Ignacio Cárdenas escribió:

Gracias por vuestra ayuda, al final era un include mal puesto :)

Xpctro

> > Hola a todos, :)
>
> Hola!
>
> > Tengo un problema linkando un app de kde con kdevelop:
> >
> > /****************** COMPILER OUTPUT *****************/
> > /bin/sh ../libtool --silent --mode=link g++ -Wnon-virtual-dtor
> > -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
> > -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
> > -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions
> > -fno-check-new -o mekmule -R /usr/kde/3.1/lib -R /usr/qt/3/lib -R
> > /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib main.o
> > mekmule.o mekmuleview.o pref.o mainview.o -lkio *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x8):
> > undefined reference to `typeinfo for mekMuleIface' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x14):
> > undefined reference to `mekMuleIface::process(QCString const&,
> > QMemArray<char> const&, QCString&, QMemArray<char>&)' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x18):
> > undefined reference to `mekMuleIface::functions()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x1c):
> > undefined reference to `mekMuleIface::interfaces()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x48):
> > undefined reference to `typeinfo for mekMuleIface' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x54):
> > undefined reference to `virtual thunk [v:0,-16] to
> > mekMuleIface::process(QCString const&, QMemArray<char> const&, QCString&,
> > QMemArray<char>&)' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x64):
> > undefined reference to `virtual thunk [v:0,-32] to
> > mekMuleIface::interfaces()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTC11mekMuleView116_12mekMuleIface+0x68):
> > undefined reference to `virtual thunk [v:0,-36] to
> > mekMuleIface::functions()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTV11mekMuleView+0x214): undefined
> > reference to `mekMuleIface::process(QCString const&, QMemArray<char>
> > const&, QCString&, QMemArray<char>&)' *
> > mekmuleview.o(.gnu.linkonce.d._ZTV11mekMuleView+0x218): undefined
> > reference to `mekMuleIface::functions()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTV11mekMuleView+0x21c): undefined
> > reference to `mekMuleIface::interfaces()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTV11mekMuleView+0x254): undefined
> > reference to `virtual thunk [v:0,-16] to mekMuleIface::process(QCString
> > const&, QMemArray<char> const&, QCString&, QMemArray<char>&)' *
> > mekmuleview.o(.gnu.linkonce.d._ZTV11mekMuleView+0x264): undefined
> > reference to `virtual thunk [v:0,-32] to mekMuleIface::interfaces()' *
> > mekmuleview.o(.gnu.linkonce.d._ZTV11mekMuleView+0x268): undefined
> > reference to `virtual thunk [v:0,-36] to mekMuleIface::functions()' *
> > mekmuleview.o(.gnu.linkonce.t._ZN12mekMuleIfaceD0Ev+0x11): In function
> > `mekMuleIface::~mekMuleIface [in-charge deleting]()': * : undefined
> > reference to `vtable for mekMuleIface'
> > * mekmuleview.o(.gnu.linkonce.t._ZN12mekMuleIfaceD0Ev+0x18): In function
> > `mekMuleIface::~mekMuleIface [in-charge deleting]()': * : undefined
> > reference to `vtable for mekMuleIface'
> > * mekmuleview.o(.gnu.linkonce.t._ZN12mekMuleIfaceD1Ev+0xb): In function
> > `mekMuleIface::~mekMuleIface [in-charge]()': * : undefined reference to
> > `vtable for mekMuleIface'
> > * mekmuleview.o(.gnu.linkonce.t._ZN12mekMuleIfaceD1Ev+0x12): In function
> > `mekMuleIface::~mekMuleIface [in-charge]()': * : undefined reference to
> > `vtable for mekMuleIface'
> > * mekmuleview.o(.gnu.linkonce.d._ZTI11mekMuleView+0x18): undefined
> > reference to `typeinfo for mekMuleIface' * mainview.o(.text+0x25): In
> > function `MainView::MainView[not-in-charge](QWidget*, char const*)': * :
> > undefined reference to
> > `MainViewBase::MainViewBase[not-in-charge](QWidget*, char const*,
> > unsigned)' * mainview.o(.text+0x2b): In function
> > `MainView::MainView[not-in-charge](QWidget*, char const*)': * : undefined
> > reference to `vtable for MainView'
> > * mainview.o(.text+0x32): In function
> > `MainView::MainView[not-in-charge](QWidget*, char const*)': * : undefined
> > reference to `vtable for MainView'
> > * mainview.o(.text+0x125): In function
> > `MainView::MainView[in-charge](QWidget*, char const*)': * : undefined
> > reference to `MainViewBase::MainViewBase[not-in-charge](QWidget*, char
> > const*, unsigned)' * mainview.o(.text+0x12b): In function
> > `MainView::MainView[in-charge](QWidget*, char const*)': * : undefined
> > reference to `vtable for MainView'
> > * mainview.o(.text+0x132): In function
> > `MainView::MainView[in-charge](QWidget*, char const*)': * : undefined
> > reference to `vtable for MainView'
> > * mainview.o(.text+0x20b): In function `MainView::~MainView
> > [not-in-charge]()': * : undefined reference to `vtable for MainView'
> > * mainview.o(.text+0x212): In function `MainView::~MainView
> > [not-in-charge]()': * : undefined reference to `vtable for MainView'
> > * mainview.o(.text+0x21a): In function `MainView::~MainView
> > [not-in-charge]()': * : undefined reference to
> > `MainViewBase::~MainViewBase [not-in-charge]()' *
> > mainview.o(.text+0x23b): In function
> > `MainView::~MainView [in-charge]()': * : undefined reference to `vtable
> > for MainView'
> > * mainview.o(.text+0x242): In function `MainView::~MainView
> > [in-charge]()': * : undefined reference to `vtable for MainView'
> > * mainview.o(.text+0x24a): In function `MainView::~MainView
> > [in-charge]()': * : undefined reference to `MainViewBase::~MainViewBase
> > [not-in-charge]()' * mainview.o(.text+0x26e): In function
> > `MainView::~MainView [in-charge deleting]()': * : undefined reference to
> > `vtable for MainView'
> > * mainview.o(.text+0x275): In function `MainView::~MainView [in-charge
> > deleting]()': * : undefined reference to `vtable for MainView'
> > * mainview.o(.text+0x27d): In function `MainView::~MainView [in-charge
> > deleting]()': * : undefined reference to `MainViewBase::~MainViewBase
> > [not-in-charge]()' * collect2: ld returned 1 exit status
> > * gmake[2]: *** [mekmule] Error 1
> > * gmake[2]: Target `all' not remade because of errors.
> > * gmake[1]: *** [all-recursive] Error 1
> > * gmake: *** [all] Error 2
> > * *** Exited with status: 2 ***
> > /********************* END COMPILER OUTPUT *********************/
> >
> > He probado con distclean y luego recompilar, pero nada. Y me ha pasado
> > en dos proyectos.
> > ¿Alguna idea?
> >
> > Gracias por vuestra ayuda
>
> Parece que no estás enlazando con la librería básica de las Qt, que es
> libqt-mt.so. Deberías añadir -lqt-mt a tus opciones de enlazado, aunque no
> se cómo se hará en kdevelop... O:-)
>
> De todos modos, creo que aún así te seguirá dando errores (pienso que
> tienes algo mal en el código del programa)... así que prueba a hacer lo que
> te dije, y si sigue fallando nos vuelves a enviar el output.
>
> Un saludo,
> Ignacio.

-- 
BOFH Excuse #256:

You need to install an RTFM interface.



More information about the Kde-devel-es mailing list