betterC DLL in Windows

Richard (Rikki) Andrew Cattermole richard at
Sat Feb 4 16:51:36 UTC 2023

You don't have access to druntime/Phobos stuff at runtime.

SimpleDllMain is for initializing and uninitializing druntime.


You want to only use ldc atm. The defaults right now should most likely 
"just work" in dub for a single compile + link step (i.e. only a single 
static library in dll).

If you do it manually, you'll want to add the flag 
``--fvisibility=public`` to export everything.

More information about the Digitalmars-d-learn mailing list