Shared library module system with dub

Pillager86 ismail.ax.2011 at gmail.com
Tue Mar 2 04:26:52 UTC 2021


On Tuesday, 2 March 2021 at 04:13:31 UTC, Pillager86 wrote:
> On Tuesday, 2 March 2021 at 03:42:14 UTC, Pillager86 wrote:
>> Update: the dub "dynamicLibrary" target option is busted on 
>> Windows and does not build anything at all. This should be 
>> filed as a bug.
>
> Update again: I got the Windows DLL to build and run without 
> crashing, but I don't know how to put specific platform options 
> in dub. I need "dflags" "-defaultlibrary=phobos2" or something 
> on Linux but not Windows.

Also, what do you do if the shared library needs to refer to 
types in the main static library?


More information about the Digitalmars-d-learn mailing list