win32 build stops with linker error

David Faure faure at kde.org
Wed Feb 8 17:59:14 CET 2006


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.

-- 
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