Equivalent of DllMain on OSX?

Mark Isaacson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 25 16:38:58 PDT 2014


>
> Loading multiple D shared libraries isn't supported on OS X 
> yet, see these warnings in druntime:
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/rt/sections_osx.d#L198
>
> If you only have a single D shared library, I think it's 
> possible, you just may have to tweak dmd/druntime or your build 
> process a bit.
>
> I think Martin Nowak or Jacob Carlborg can really answer your 
> questions, as Martin wrote a lot of that code and Jacob seems 
> to follow it closely, whereas I don't use OS X but looked at 
> that code when porting to Android.

It would only be a single shared library.



Finally got the code publicly available:
https://github.com/markisaa/presto-odbc/blob/osxCompile/driver/driver.d#L61

It should compile on OSX with a simple `make clean all`
Testing would require installing the iODBC driver manager and
pressing the 'Add Driver' button, possibly making a new User DSN,
and possibly pressing 'Test'.


More information about the Digitalmars-d-learn mailing list