[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Still problems with gcc 3.4 and visibility
From: Reinhold Kainhofer <reinhold () kainhofer ! com>
Date: 2004-11-23 19:40:04
Message-ID: 200411232040.11586.reinhold () kainhofer ! com
[Download RAW message or body]
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@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
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic