[fpc-pascal] Code tools search paths
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun May 10 11:47:56 CEST 2020
On Sun, 10 May 2020 16:34:11 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi)
> was doing something because it helped FindDeclaration to search for
> units not in the same same directory as the main program. However now
> I've encountered problems with FindReferences (the example Mattias
> made for me) which seem to be caused by the inclusion of FPCOptions
> (if I remove the FPC options it properly builds the unit search
> graph).
>
> reading on https://wiki.lazarus.freepascal.org/Codetools it sounds
> like I need to be using TDefineTemplate to add unit search paths.
> Which is the correct way to do this?
TDefineTemplates.
see for example
lazarus/components/codetools/examples/setincludepath.pas
Mattias
More information about the fpc-pascal
mailing list