DMD - issue building shared library

Dibyendu Majumdar via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 18 15:53:45 PST 2016


On Monday, 18 January 2016 at 05:58:38 UTC, bitwise wrote:
> On Sunday, 17 January 2016 at 22:12:44 UTC, Dibyendu Majumdar 
> wrote:
>> Presumably there is no compiler flag to auto generate this?
>
> There's no compiler flag, but you can use this:
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/core/sys/windows/dll.d#L473
>
>     Bit

Thanks - that worked, but I had to write it this way:

   import std.c.windows.windows;
   import core.sys.windows.dll;
   mixin SimpleDllMain;

I noticed that above modules are documented in the library 
reference so I assume that this template is not supported?

Regards
Dibyendu


More information about the Digitalmars-d mailing list