[D-runtime] Arghhh, DLLs broken on Win32 *again*!

Walter Bright walter at digitalmars.com
Wed Mar 21 10:10:15 PDT 2012



On 3/21/2012 5:23 AM, dawg at dawgfoto.de wrote:
>
>
> You're apparently not referring to this HTML-unittest
> http://dlang.org/dll.html#Dcode. None of it compiles,
> but once it is made compiling it works.
>
> Start Dynamic Link...
> DLL_PROCESS_ATTACH
> static this for mydll
> Hello world!
> DLL_PROCESS_DETACH
> static ~this for mydll
>
> Please post a correct way to setup a Windows dmd-dev toolchain, how to run 
> unittest... .
>
> test.d imports mydll.d and needs mydll's ModuleInfo, thus dynamic loading
> is not possible. Have you linked the module twice?
>

I'm running the same test suite for years for DLLs. No, it is not linking things 
twice. Historically, it breaks badly every time someone tweaks the druntime 
startup code.


More information about the D-runtime mailing list