[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kcmodule segfaulting problem
From: David Faure <david () mandrakesoft ! com>
Date: 2002-07-14 9:56:04
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 14 July 2002 17:44, fenix wrote:
> Le sam 13/07/2002 à 22:19, Sheldon Lee-Wen a écrit :
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi again,
> >
> > Firstly, thanks to Aaron for all of his help. However, I still can get the
> > damned thing working!! I am using the new way, as you suggested Aaron,
> > however, when I run it in kcmshell I get the following errors:
> >
> > kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libkdecore.so.4: undefined
> > symbol: init_libkcm_klineakcontrol
> > kdecore (KLibLoader): WARNING: KLibrary: The library libkcm_klineakcontrol
> > does not offer an init_libkcm_klineakcontrol function
> > kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libkdecore.so.4: undefined
> > symbol: create_KlineakControl
> >
> > ?? What am I missing? Here is the class declaration.
> >
> >
> > class KlineakControl: public KCModule
> <snip>
>
> Hi,
>
> Have you:
>
> extern "C" {
> void init_klineakcontrol()
> {
> //init stuff here
> }
> }
You don't need the above if you use K_EXPORT_COMPONENT_FACTORY.
> typedef KGenericFactory<KlineakControl, QWidget> KlineakControlFactory;
> K_EXPORT_COMPONENT_FACTORY( kcm_klineakcontrol, KlineakControlFactory(
> "kcmklineakcontrol" ) );
Looks ok.
- --
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9MUq072KcVAmwbhARAnJvAKCHx3S32LLV0xhtZjE3vhyBjvfWZwCfWdR+
L+pJhQ0oz3Pv00uihdnC9eU=
=Z3QB
-----END 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