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

Thiago Macieira thiago at
Sun May 15 15:30:35 BST 2005

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.

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

  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list