[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Problem using StdAddressbook
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2006-12-30 19:29:41
Message-ID: 200612301229.42571.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Saturday 30 December 2006 7:50, Dirk Scheer wrote:
> appletproxy: symbol lookup
> error:
> /home/dirk/EigeneDateien/C/kuickdial/debug/src/.libs/kuickdial_panelapplet.
>so: undefined symbol: _ZN4KABC14StdAddressBook4selfEv
this symbol is not found by your applet. it refers to this method:
KABC::StdAddressBook()
the 'v' in the symbol name is for "void" (e.g. no parameters).
> I know, that I can find the apropriate member function
> in /usr/lib/libkdepim.so, but a
>
> strings libkdepim.so.1 | grep StdAddressBook
wrong library. StdAddressBook is in libkabc, which is in kdelibs/kabc/ if you
aren't linking your applet against libkabc then you'll have problems like
this =)
> shows me
> _ZN4KABC14StdAddressBook4selfEb
a) this is KABC::StdAddressBook::self(bool), which is a different method from
the one you are using
b) you don't want to be using strings but nm. if you use nm you'll see this:
aseigo@freedom:~$ nm /opt/kde4/lib/libkdepim.so | grep StdAddressBook
U _ZN4KABC14StdAddressBook4selfEb
a-ha! 'U'. `man nm` tells us that `U` means "undefined". in other words, this
is the -wrong- library. now if we do this:
aseigo@freedom:~$ nm /opt/kde4/lib/libkabc.so | grep StdAddressBook | grep
self
0005d5d0 T _ZN4KABC14StdAddressBook4selfEb
0005d8f0 T _ZN4KABC14StdAddressBook4selfEv
'T' means "the symbol exists, and it's in the code (text) section of the
binary".
so i'm guessing you didn't link against kabc =)
happy new year.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic