[Lazarus] Codetools include search path(s)

Howard Page-Clark hdpc at talktalk.net
Thu Mar 27 21:20:39 CET 2014


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?

Howard




More information about the Lazarus mailing list