Desperately looking for a work-around to load and unload D shared libraries from C on OSX

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 19 09:53:26 PDT 2015


On Thursday, 17 September 2015 at 21:13:46 UTC, bitwise wrote:
> He can simply create a second empty callback in VSTPluginMain 
> which will pin his library:

Yikes, pinning the library is really ugly hack around the actual 
issue.
Anyone has an idea how to use the crappy dyld API w/o crashing on 
unload?

If nothing helps we could try to add init/fini calls to binaries 
like we do w/ ELF.


More information about the Digitalmars-d mailing list