Creating a dynamic library on Linux with DMD

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Sun Jun 10 16:31:39 PDT 2007


Frank Benoit wrote:
> Hm, ppl telling me, that building a .so is possible with GDC and not
> well supported with DMD.
> 
> What is the difference here?

IIRC, to build a .so the compiler backend needs to be able to generate 
position-independent code. GDC uses a GCC backend, which have no problem 
with this that I'm aware of (just pass -pic/-PIC on the command line). 
The backend DMD uses on the other hand simply can't do that at the moment.



More information about the Digitalmars-d mailing list