How does the compiler look for the files of imports?

Nathan Reed nathaniel.reed at gmail.com
Tue Sep 18 18:14:20 PDT 2007


BCS wrote:
> What I want is not the compiler trying to find files. What I want is the 
> compiler tying to find the root. The files still must be in the correct 
> places, but I don't want to have to run DMD from correct place.

So you use the -I flag like Kirk mentioned, to tell it where the root is.

If you don't like having to remember to type that every time, just use a 
makefile, or your automated build system of choice.

Thanks,
Nathan Reed



More information about the Digitalmars-d mailing list