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

Sean Kelly sean at invisibleduck.org
Wed Mar 21 13:19:09 PDT 2012


On Mar 21, 2012, at 10:10 AM, Walter Bright <walter at digitalmars.com> wrote:

> 
> 
> 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.

Because it explicitly calls internal functions instead of Runtime.initialize or whatever. 


More information about the D-runtime mailing list