Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-03

Codetools include search path(s)

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Howard Page-Clark

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

Reply by email

Mattias Gaertner
to Howard Page-Clark
Show quoted text 13 lines
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

Reply by email

Howard Page-Clark
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Thu, 27 Mar 2014 20:20:39 +0000 Howard Page-Clark wrote: > 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

Thanks both for the prompt response and the new documentation (as well as for the impressive design and engineering of the codetools, of course).

Howard

Reply by email