KIO, gpgme
Stromek
stromek at realtime.sk
Sat Mar 3 17:45:25 CET 2007
On Sat, Mar 03, 2007 at 04:32:20PM +0100, Christian Ehrlicher wrote:
> Stromek schrieb:
> >I encoutered another issue I have problem to solve. Building kleopatra
> >gives me unresolved symbol (GpgME::Key::null), see below. Personally, I
> >would say that everything is all right but msvc7 thinks something
> >different.
> >
> >keyselectiondialog.obj : error LNK2001: unresolved external symbol
> >"public: static class GpgME::Key GpgME::Key::null"
> >(?null at Key@GpgME@@2V12 at A)
> >
> >Key::null is defined in kdepim/gpgmepp/key.h as follows:
> >
> > class KDE_EXPORT Key {
> > friend class Context;
> > public:
> > Key();
> > Key( gpgme_key_t key, bool acquireRef, unsigned int keyListMode=0 );
> > Key( const Key & key );
> > ~Key();
> >
> > static Key null;
> > ...
> > }
> >
> >And in key.cpp there is:
> >
> >GpgME::Key GpgME::Key::null;
> >
> >Does someone know how to solve this unresolved symbol? I tried to define
> >it as an extern but it didn't help (extern KDE_EXPORT GpgME::Key
> >GpgME::KeyNull).
> >
> KDE_EXPORT is wrong
> it must be KDE_YOURLIB_EXPORT like it is done for all other libs
nice, worked like a charm :) I had to modify also kdepim_export.h according to the one in kdelibs.
--
Stromek
More information about the Kde-windows
mailing list