Re: Cannot find module during separate compilation

2016-06-10 Thread Mike Parker via Digitalmars-d-learn
On Friday, 10 June 2016 at 15:20:21 UTC, Satoshi wrote: Hello, I have 2 files: source/test.d: module foo.test; and source/bar.d module foo.bar; import foo.test; When I am compiling this 2 files together there is no problem. But when I compile it with -c flag (LDC) compiler thrown an error

Cannot find module during separate compilation

2016-06-10 Thread Satoshi via Digitalmars-d-learn
Hello, I have 2 files: source/test.d: module foo.test; and source/bar.d module foo.bar; import foo.test; When I am compiling this 2 files together there is no problem. But when I compile it with -c flag (LDC) compiler thrown an error (cannot find foo/test.d) Why isn't import path resolved