On Wed, 09 Jul 2014 16:07:27 GMT, Sönke Ludwig wrote:

I've added .def to the list of recognized linker files in b3b96f0. You may also be able to work around this issue by setting "lflags-windows-dmd": ["/IMPDEF:$PACKAGE_DIR\\source\\dll.def"] or similar (I'm not sure if that parameter syntax is correct).

Many thanks for the patch.

I tried lflags ["/IMPDEF:$PACKAGE_DIR\\source\\dll.def"] but /IMPDEF causes OPTLINK to generate a file (not use them).

I tried [" C:\\AbsolutePath\\source\\dll.def"] as work around. But Optlink has a strange command line format.

LINK obj[,out[,map[,lib[,def[,res]]]]]

DEF must be after LIB's. And my result link.exe mydll,"mydll.dll",nul,user32+kernel32/noi/IMPLIB "mydll.def"; did not work.

In any case, now it is not critical. I can wait for the next DUB release. Or build DUB ~master.