From kde-core-devel Sun Oct 30 17:21:59 2005 From: Thiago Macieira Date: Sun, 30 Oct 2005 17:21:59 +0000 To: kde-core-devel Subject: Re: [Patch] fix compile kdecore with msvc Message-Id: <200510301522.00717.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=113069297624184 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1898415.MEzYFV9gsG" --nextPart1898415.MEzYFV9gsG Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=20 doesn't allow for globally weak symbols. That's how g++ does on ELF=20 platforms: it generates several copies of the same symbol, all with weak=20 linkage. When the program is loaded, all relocations will point to the=20 same copy. =2D-=20 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=C3=A9anhwearf t=C3=B3 timbran, and hwonne he c=C3=B3m, l=C3=A1!= Unix cw=C3=A6=C3=B0 "Hello,=20 World". =C7=BCfre =C7=BDghwilc w=C3=A6s gl=C3=A6d and seo woruld w=C3=A6s f= r=C3=A9o. --nextPart1898415.MEzYFV9gsG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDZQE4M/XwBW70U1gRAj6zAKCuXYY+a9IoleX7KkTF+oaoiU5KiwCfSCw+ git83dobhU8ef3STxDKoaCs= =v8qd -----END PGP SIGNATURE----- --nextPart1898415.MEzYFV9gsG--