[fpc-pascal] uses in '' relative paths

Ryan Joseph genericptr at gmail.com
Wed Oct 7 19:15:28 CEST 2020



> On Oct 7, 2020, at 11:02 AM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> Only in FPC:
> 
> {$unitpath sources}
> interface
> uses
>  TOMLParser, TOMLTypes;

Some interesting stuff here, thanks. Almost there but for some reason Scanner.pas is not found even though it's in the same directory as TOMLParser.pas. The compiler did find TOMLParser despite /sources not being explicitly included as -Fu option.


unit TOMLParser;
interface
uses
  Classes, 
  Scanner,    // error: Can't find unit Scanner used by TOMLParser
  TOMLTypes;

We get to TOMLParser like this:


unit TOML;
interface
uses
  TOMLParser in 'sources/TOMLParser.pas',


Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list