See this: http://www.digitalmars.com/ctg/ctgLinkSwitches.html#scanlib
You pass switches to the linker via -L, so the switch might be: dmd -L/SCANLIB Of course you would have to update the LIB environment variable in command line, or via a batch file before calling DMD: > set lib=C:\DirWithLibFiles\;%lib% I think that should do it, although I haven't tested it.
