KIO, gpgme

Stromek stromek at realtime.sk
Mon Mar 5 14:07:54 CET 2007


----- Forwarded message from Stromek <stromek at realtime.sk> -----

Date: Sun, 4 Mar 2007 12:13:22 +0100
From: Stromek <stromek at realtime.sk>
To: KDE on Windows <kde-windows at kde.org>
Subject: Re: KIO, gpgme
Mail-Followup-To: KDE on Windows <kde-windows at kde.org>
In-Reply-To: <20070303164525.GA11000 at core.realtime.sk>
User-Agent: Mutt/1.5.11

On Sat, Mar 03, 2007 at 05:45:25PM +0100, Stromek wrote:
> 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.

tadaa, korganizer compiled, see the screenshot (removed because the email
was rejected by the list admin due to its size, see
http://www.realtime.sk/~stromek/korganizer.png). my first success :) i'm
so happy now. during the week, i'm going to post my changes. i spent
lots of time on the issue and other things require my attention now.

have a nice weekend.

-- 
Stromek



----- End forwarded message -----



More information about the Kde-windows mailing list