Linux shared libraries - I'm confused
Steve Teale
steve.teale at britseyeview.com
Thu Aug 16 22:37:08 PDT 2007
Matthias Walter Wrote:
> Steve Teale Wrote:
>
> > I've seen it said that dmd does not support creation of Linux shared libraries, but I've also seen it said that you can use dmd -c to create a .o file, and then use gcc -shared ... to create an so. Can anyone clarify the position here please?
> >
>
> AFAIK dmd cannot create position independent code. So, you can link it this way but the code is not guaranteed to work. But with gdc you can use -fpic to generate such code.
>
> best regards
> Matthias
Hmm, well that's a bit of a show-stopper for Linux coding then isn't it. Am I also correct in thinking that GDC does not support D version 2 yet?
More information about the Digitalmars-d
mailing list