[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [Patch] fix compile kdecore with msvc
From:       Thiago Macieira <thiago () kde ! org>
Date:       2005-10-30 17:21:59
Message-ID: 200510301522.00717.thiago () kde ! org
[Download RAW message or body]


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
>feature).

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.

[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