Still problems with gcc 3.4 and visibility
Reinhold Kainhofer
reinhold at kainhofer.com
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
K_EXPORT_COMPONENT_FACTORY(resourcecalendarexchange,
KRES::PluginFactory<ResourceExchange,ResourceExchangeConfig> )
the compiler will complain that K_EXPORT_COMPONENT_FACTORY got three
arguments, but only expects two...
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, Vienna, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at
* K Desktop Environment, http://www.kde.org/, 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: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041123/6e085012/attachment.sig>
More information about the kde-core-devel
mailing list