[fpc-pascal] uses myunit in '../src/myunit.pas' ?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Feb 13 18:00:39 CET 2017


On Mon, 13 Feb 2017 09:34:09 -0700 (MST)
fredvs <fiens at hotmail.com> wrote:

> > The compiler already does this.   
> Yes, that I know, for one unit, but try this:

I guess you are searching for {$unitpath Documents}

The problem with this directive is that it only works correct in the
program. FPC allows it in units too, but then some units might not
rebuild automatically, so you must rebuild always clean.

Mattias



More information about the fpc-pascal mailing list