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

Marco van de Voort marcov at stack.nl
Sun Feb 12 17:03:42 CET 2017

In our previous episode, Mattias Gaertner said:
> > > ../someunit instead of configuring -Fu which can be obnoxious and
> > > tedious..  But that's just one use case.  Another use case, AFAIR was a
> > > build system instead of gnu make.   
> > 
> > IMHO these are all shaky uses cases, and actually doing it right is quite
> > hard.
> Why is using -Fu hard?

It requires a project file and Delphi is somewhat shaky with relative paths
which makes configuring it hard. One has the choice between abs paths, the
subset trick, or doubtful relative paths.

(Delphi evaluates relative paths relative to the current directory, which
can be random unless you load it via file->open project)

More information about the fpc-pascal mailing list