Still problems with gcc 3.4 and visibility

Reinhold Kainhofer reinhold at
Tue Nov 23 19:40:04 GMT 2004

Jaroslaw Staniek wrote:
> That's trivial, but universal and portable way of declaring components is
> to use (already defined and enabled for visibility in klibloader):
>   K_EXPORT_COMPONENT_FACTORY( konq_sidebar, KonqSidebarFactory )

Okay, Good. But what shall one do if the factory is a template, e.g.
extern "C"
  void* init_resourcecalendarexchange()
    return new KRES::PluginFactory<ResourceExchange,ResourceExchangeConfig>();

If I change this to 

KRES::PluginFactory<ResourceExchange,ResourceExchangeConfig> )

the compiler will complain that K_EXPORT_COMPONENT_FACTORY got three 
arguments, but only expects two...


Reinhold Kainhofer, Vienna, Austria
email: reinhold at,
 * Financial and Actuarial Mathematics, TU Wien,
 * K Desktop Environment,, KOrganizer / KPilot maintainer
-------------- 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