Packaging D libraries, cross compiler compatibility

Jacob Carlborg doob at me.com
Sun Sep 16 04:25:34 PDT 2012


On 2012-09-16 09:59, Thomas Koch wrote:
> Hi,
>
> I've started a discussion about packaging D libraries and programs for
> Debian:
> http://code.google.com/p/d-apt/issues/detail?id=1
>
>  From this discussion I learned, that it would make a difference which
> version of which compiler created a library. Isn't it that it doesn't matter
> which C compiler created a library that you want to link against?
>
> Could you point me to more information about this issue? I'm just starting
> to learn D and also don't have practical experience with C.
>
> Regards,
>
> Thomas Koch
>

The runtimes are slightly different and the calling conventions are 
sometimes different. For example, GDC uses the C calling convention of 
the system wheres DMD uses a slightly modified version.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list