[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: undefined reference when trying KMDI tutorial - SOLVED
From:       Karim Ryde <karim () bredband ! net>
Date:       2005-08-24 14:49:02
Message-ID: 200508241649.02788.karim () bredband ! net
[Download RAW message or body]

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@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic