[Lazarus] Cannot find inc file from a registered package...

Bo Berglund bo.berglund at gmail.com
Thu Jun 25 20:51:22 CEST 2020

On Wed, 24 Jun 2020 11:44:29 +0300, Juha Manninen via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>On Tue, Jun 23, 2020 at 10:40 PM Juha Manninen
><juha.manninen62 at gmail.com> wrote:
>> Is the path containing the include file (Indy10\System or similar) in
>> Indy package's include search path?
>> I did not understand the question.
>> Where do I find the "Indy packages include search path"?
>Mattias already explained it. Please read your replies.
> Open its package editor.
> Click Options
> Click Show Options
>I installed Indy10 and checked. "Include files (-Fi)" says :
> .;Core;Protocols;System
>So the System directory is there.

Not in my case, OPM did not place it there. The box is empty.

>Then I added to my project source :
>  {$I IdCompilerDefines.inc}
>and indeed it is not found. I added IdCompilerDefines.inc into the
>Indy10 files collection but it still is not found.
>This is a bug. Unit files from -Fu path are found but include files
>from -Fi path are not.

OK, so I did the following:

1) Opened the indylaz package and added an include path looking the
same as the previous two:
Notice. Before I did this the inclute path box was empty.

2) Removed the path to the OPM installation from my project options

3) Uncommented the include statement in my source file

4) Tried a test compile

But it stopped at the exact same place again with the error message:
class_SSRemoteServer.pas(84,2) Fatal: Cannot open include file

So adding a path to the include path box for the package does not work

>Please report in bug tracker so it is not forgotten.

How is that done? I have never evr done such a report. Do I have to
have an account somewhere to do it?

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list