[Lazarus] Codetools include search path(s)

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 28 04:41:07 CET 2014


On Thu, 27 Mar 2014 20:20:39 +0000
Howard Page-Clark <hdpc at talktalk.net> wrote:

> I've been experimenting with the codetools example finddeclaration 
> project, using the codetools outside the IDE, and feeding FPC and 
> Lazarus source directory information via environment variables to the 
> CodeToolBoss constructor, which works OK for simple source files.
> However, when looking for, say, the declaration of TLabel in StdCtrls 
> the linkscanner barfs over an include file it cannot find.
> 
> TCodeToolManager.HandleException: "include file not found 
> "lcl_defines.inc"" at Line=21 Col=5 in "c:\lazarus\lcl\std
> ctrls.pp"
> 
> How should I pass the location of lcl\include\ when initializing the 
> codetools?

I extended the wiki with some explanations how the codetools defines
work:
http://wiki.lazarus.freepascal.org/Codetools#Defining_search_paths_and_macros


Mattias




More information about the Lazarus mailing list