Visibility problem (Fwd: kdewebdev-3.4.0 compile error....)

Andras Mantia amantia at kde.org
Sun May 15 15:35:18 BST 2005


On Sunday 15 May 2005 17:30, Thiago Macieira wrote:
> Andras Mantia wrote:
> > Can anyone help me why this happens for some users? The code in
> >question is compiled from KDE 3.3.x and is taken from KDE 3.4's
> >kdelibs/knewstuff, yet for me it compiled also against KDE 3.3.x,
> > but some people get this error and I have no idea how can I solve.
> >
> >downloaddialog.h:232: error: visibility arg must be
> >one of "default", "hidden", "protected" or "internal"
>
> It means this user is using kdelibs 3.3.0. Have him upgrade. This bug
> was fixed for the kdelibs 3.3.2 package.

I see. This is why it worked for me as I compiled against the latest KDE 
3.3 branch.

> kdemacros.h for 3.3.0:
> #define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
> #define KDE_EXPORT __attribute__ ((visibility("visible")))
>
> kdemacros.h for 3.3.2:
> #define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
> #define KDE_EXPORT __attribute__ ((visibility("default")))
>
> Some applications have worked around that:
> #if !KDE_IS_VERSION(3,3,2)
> # undef KDE_EXPORT
> # define KDE_EXPORT
> #endif

Thanks for the hint.

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050515/eff77b23/attachment.sig>


More information about the kde-core-devel mailing list