'main.d': import pack.mod; void main() { fn("Hello"); }
'mod.d': module pack.mod; void fn(string s) { import std.stdio; writeln("Hello"); } Both files are in the same directory. So all is well: dmd main.d mod.d So all is bad: dmd mod.d -lib dmd main.d -L-L. -L-l:mod.amain.d(1): Error: module mod is in file 'pack/mod.d' which cannot be read
Please answer why it happens.