Try using the unilink linker: ftp://ftp.styx.cabel.net/pub/UniLink/
Get ulnb0329.zip You have to configure ulink.cfg to this: -zsnn.lib -LC:\dmd\windows\lib -LC:\dm\lib -Go -zkernel32;advapi32;user32;wsock32;shell32;snn.lib -LC:\dmd2\windows\lib -Go Then linking is just: ulink <file1>.obj <file2>.obj <lib>.obj etc..