[fpc-pascal] Code tools search paths

Ryan Joseph genericptr at gmail.com
Sun May 10 11:34:11 CEST 2020


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?


Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list