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

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 19 12:31:13 PDT 2015


On 2015-09-19 18:53, Martin Nowak wrote:

> 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?

I don't think it possible since there's no API to unregister the callback.

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

I think this would be best choice. That's how the libSystem (the C 
standard library and a couple of other libraries) is initialized.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list