win32 build stops with linker error

David Faure faure at kde.org
Wed Feb 8 18:29:41 CET 2006


On Wednesday 08 February 2006 18:24, Christian Ehrlicher wrote:
> David Faure schrieb:
> > On Wednesday 08 February 2006 17:54, Peter Kümmel wrote:
> >> #ifdef Q_OS_WIN
> >> template class __declspec(dllexport) QMap<QString, QString>;
> >> #endif
> >>
> >> Does the job.
> > 
> > Great. Does it also work as
> > template class KIO_EXPORT QMap<QString, QString>;
> > or does it have to be always dllexport even from other libs seeing this code?
> > 
> > I'm asking because it would be nice to get the symbols into kio on unix too,
> > to reduce the number of relocations.
> But then you should use KDE_EXPORT instead!

For unix KIO_EXPORT or KDE_EXPORT is the same, so I'll trust you to use whichever
works for the Windows side, I'm just surprised that all libs reading that .h would think
that they need to export the symbol again...

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list