win32 build stops with linker error

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Feb 8 19:17:15 CET 2006


David Faure schrieb:
> 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...
> 
I misunderstood you. Yes, KIO_EXPORT the the right way. I thought you
wanted to have this symbol in other libs too.

christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060208/c77bab33/attachment.pgp 


More information about the Kde-buildsystem mailing list