June 11, 2009 [Issue 3062] New: -run compiler switch ignores -I option | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3062 Summary: -run compiler switch ignores -I option Product: D Version: 2.030 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: maxmo@pochta.ru >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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 11, 2009 [Issue 3062] -run compiler switch ignores -I option | ||||
---|---|---|---|---|
| ||||
Posted in reply to maxmo@pochta.ru | http://d.puremagic.com/issues/show_bug.cgi?id=3062 Frits van Bommel <fvbommel@wxs.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fvbommel@wxs.nl Resolution| |INVALID --- Comment #1 from Frits van Bommel <fvbommel@wxs.nl> 2009-06-11 06:30:51 PDT --- 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". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation