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