DMD and GDC static libraries are incompatible on Linux?

Iain Buclaw via D.gnu d.gnu at puremagic.com
Mon Feb 9 11:24:13 PST 2015


On 9 February 2015 at 17:56, Jeremy DeHaan via D.gnu
<d.gnu at puremagic.com> wrote:
> I'm pretty sure I already know the answer to this, however I just wanted to
> ask to make sure.
>
> I was talking with someone the other day. They were using Linux and tried to
> link static libraries built with DMD during a build with GDC. I thought this
> would work due to both DMD and GDC using GCC on Linux, but GDC wouldn't find
> any of the symbols in the DMD static libraries. Is this normal?

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.


More information about the D.gnu mailing list