Desperately looking for a work-around to load and unload D shared libraries from C on OSX
ponce via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 17 09:29:14 PDT 2015
On Thursday, 17 September 2015 at 15:12:43 UTC, Jacob Carlborg
wrote:
>
> Easiest would be to not unload the library.
I don't control what the host program does.
> If that doesn't work, replace
> "_dyld_register_func_for_add_image" [1] with
> "dyld_register_image_state_change_handler" [2].
>
> [1]
> https://github.com/D-Programming-Language/druntime/blob/master/src/rt/sections_osx.d#L76
>
> [2]
> http://www.opensource.apple.com/source/dyld/dyld-353.2.3/include/mach-o/dyld_priv.h
Looks good.
More information about the Digitalmars-d
mailing list