>dmd -run tmp.d -w -I..
tmp.d(27): Error: module myutil cannot read file 'mylib\myutil.d'
line 27:
---
import mylib.myutil;
---
>dmd tmp.d -I.. -oftmp.exe -w
this works fine
Comment #1 by fvbommel — 2009-06-11T06:30:51Z
This is not a bug. -run is special in that it "eats" everything after it. The first argument afterwards is interpreted as a source file, the rest as arguments to pass to the program it compiles to (and are therefore not used by dmd itself).
What you want to do is "dmd -W -I.. -run tmp.d".