DMD and GDC static libraries are incompatible on Linux?

ketmar via D.gnu d.gnu at puremagic.com
Wed Feb 18 14:31:23 PST 2015


On Wed, 18 Feb 2015 22:13:04 +0000, Jeremy DeHaan wrote:

> On Monday, 9 February 2015 at 19:24:22 UTC, Iain Buclaw wrote:
>> GDC and DMD are not ABI compatible.  There are many reasons why this is
>> so, but the one that is likely affecting you is because DMD emits
>> references to symbols that do not exist in GDC's runtime library.
>>
>> Iain.
> 
> I was thinking about this today and I had another question. What about
> shared libraries? If I were to release a library on Linux in shared
> library form, would it be compatible between compilers?

nope, if it using D API. only `extern(C)` is allowed, and you must own 
all your GC-allocated objects, and you can't mix DMD and GDC libraries 
(ah, well, you can't even build shared phobos with GDC yet), and...

nope.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150218/b7a7e892/attachment.sig>


More information about the D.gnu mailing list