Shared library support

Guillaume Piolat via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Jan 15 08:29:03 PST 2016


On Friday, 15 January 2016 at 14:46:35 UTC, John Colvin wrote:
> What is the state of shared library support across the 
> different platforms that LDC supports? What is supposed to work 
> currently and what is not?
>
> I seem to be in a perennial state of "try it and see" with 
> this, but that makes it hard to tell the difference between 
> expected failures (not implemented yet), unexpected failures 
> (something's broken) and user error. It would be really great 
> if someone who really understand it could give me an overview :)

On OSX it is supported and works (you can use TLS) BUT you can't 
unload them (same with DMD) and they need a workaround to work, 
see https://issues.dlang.org/show_bug.cgi?id=15060
This workaround make them leak but it's the only thing you can do 
so far.

On Windows I didn't managed to export symbols: 
https://github.com/ldc-developers/ldc/issues/1158
Did someone managed to?

On Linux I don't know where it stands.



More information about the digitalmars-d-ldc mailing list