[Patch] fix compile kdecore with msvc

Thiago Macieira thiago at kde.org
Sun Oct 30 17:21:59 GMT 2005

Christian Ehrlicher wrote:
>Msvc also instantiate only on demand (otherwise I couldn't compile
>kdecore without KDE_EXPORT macro in KResolverResults), but when
>exporting it in a dll, you have to provide the full instantiated class
>(and I don't think gcc can do this another way when using visibility

I think the problem is that the binary format of the Win32 executables 
doesn't allow for globally weak symbols. That's how g++ does on ELF 
platforms: it generates several copies of the same symbol, all with weak 
linkage. When the program is loaded, all relocations will point to the 
same copy.

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- 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/20051030/364e72f5/attachment.sig>

More information about the kde-core-devel mailing list