Stumped - help needed
Alan Chandler
alan at chandlerfamily.org.uk
Sun Dec 29 14:42:04 UTC 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 29 Dec 2002 11:57 am, Carsten Pfeiffer wrote:
> On Sunday 29 December 2002 12:16, Alan Chandler wrote:
> > I am new to building kde software (indeed any software that I have written
> > under unix) and am trying to learn. I have used Gideon (aka kdevelop 3.0)
> > to build me a skeleton kde app (called kbooked) and am trying to build it.
> > [So Gideon composed the code which includes kprinter.h and calls "new
> > KPrinter" and KPrinter::setup]
>
> > This error stumps me
>
> > /bin/sh ../libtool --silent --mode=link --tag=CXX 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 kbooked -R /usr/lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/lib
main.o
> > kbooked.o kbookedview.o pref.o kbookediface_skel.o -lkio
> > kbooked.o(.text+0x885): In function `kbooked::filePrint(void)': :
> > undefined reference to
> > `KPrinter::KPrinter(bool, QPrinter::PrinterMode)' kbooked.o(.text+0x8a5):
> > In function `kbooked::filePrint(void)': : undefined reference to
> > `KPrinter::setup(QWidget *, QString const &, bool)' collect2: ld returned
> > 1 exit status
>
> This means that there is no such symbol in either your code or the
> libraries you link against. In your case, you probably forgot to link
> against kdeprint. I don't know gideon, but if you manually edit the
> Makefile.am, add $(LIB_KDEPRINT) to yourapp_LDADD
>
> Cheers
> Carsten Pfeiffer
>
Worked - thanks
To kdevelop-dev mailing list - I guess this is a problem with the template
Makefile.am in src
- --
Alan Chandler
alan at chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+DvuYuFHxcV2FFoIRAqpvAJ95MWWpCFTsfLRVEUTjut1w0yJ5tQCaAt7i
/vzBFyNnyH1elo69GKsnDm8=
=RXQO
-----END PGP SIGNATURE-----
More information about the KDevelop-devel
mailing list