Need help with linker error

Andreas Pakulat apaku at gmx.de
Sun Apr 5 20:38:27 UTC 2009


On 05.04.09 22:33:59, Fabian Wiesel wrote:
> 2009/4/5 Milian Wolff <mail at milianw.de>
> 
> > [...]
> > Note the .hidden - how can I remove that? I tried the KDEVPHPDUCHAIN_EXPORT
> > makro on the function but only get
> >
> 
> 
> > [...]
> > In file included from
> > /home/milian/projects/kde4/php/duchain/includebuilder.cpp:23:
> > /home/milian/projects/kde4/php/duchain/helper.h:50: warning: ‘visibility’
> > attribute ignored on non-class types
> >
> >
> I may be mistaken, but it seems like you used the macro on the function,
> while it has to be applied to a class.
> 
> class KDEVPHPDUCHAIN_EXPORT Php

The thing is that there's no class, just namespace functions. But those
can still be exported with that macro, see for example kglobal.h from
kdelibs.

The only public API that doesn't need the export macro is completely
inlined code.

Andreas

-- 
Your sister swims out to meet troop ships.




More information about the KDevelop-devel mailing list