undefined reference when trying KMDI tutorial - SOLVED

Karim Ryde karim at bredband.net
Wed Aug 24 15:49:02 BST 2005


Shame on me .. Makefile.am should be:
...
kmdi3_LDADD = -lkmdi $(LIB_KDECORE) $(LIB_KDEUI)
....


On Tuesday 23 August 2005 14.56, Karim Ryde wrote:
> Actually I've tried both the KMDI tutorial
> http://kdevelop.org/3.0/doc/kmditutorial and the snippets in
> http://developer.kde.org/documentation/library/3.4-api/kmdi/html/classKMdiM
>ainFrm.html
>
> On Tuesday 23 August 2005 10.06, Karim Ryde wrote:
> > I'm exploring KMdiMainFrm but cannot link:
> >
> > linking kmdi3 (libtool)
> > kmdi3.o(.text+0x37): In function `kmdi3::kmdi3[not-in-charge]()':
> > kmdi3/src/kmdi3.cpp:30: undefined reference to
> > `KMdiMainFrm::KMdiMainFrm[not-in-charge](QWidget*, char const*,
> > KMdi::MdiMode, unsigned)'
> > kmdi3.o(.text+0x108): In function `kmdi3::kmdi3[in-charge]()':
> > kmdi3/src/kmdi3.cpp:30: undefined reference to
> > `KParts::PartBase::PartBase[not-in-charge]()'
> > kmdi3/src/kmdi3.cpp:30: undefined reference to
> > `KMdiMainFrm::KMdiMainFrm[not-in-charge](QWidget*, char const*,
> > KMdi::MdiMode, unsigned)'
> >
> > Makefile.am says:
> > # the application source, library search path, and link libraries
> > kmdi3_SOURCES = main.cpp kmdi3.cpp view1.cpp
> > kmdi3_LDFLAGS = $(KDE_RPATH) $(all_libraries)
> > kmdi3_LDADD = $(all_libraries) $(LIB_KPART) $(LIB_KMDI) $(LIB_KDEUI)
> >
> > What's wrong?
> >
> > /Karim
> >
> > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >> unsubscribe <<
> >>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

-
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