Zitat von Lee Jenkins <lee@datatrakpos.com>:

>
> Hi all,
>
> This post is a follow up to a thread in the tiOPF newsgroup.
>
> Background:
> I'm using tiOPF and it uses an include file, tiDefines.inc.  The problem that
> I
> have (using Laz 0.9.24/FPC 2.2.0) is that Lazarus complains:
>
> \tiOPF2\GUI\tiGenericEditMediators.pas(23,2) Fatal: Can't open include file
> "tiDefines.inc"
>
> This is a little confusing because I have actually included the directory
> where the tiDefines.inc file is located within my project search paths.

Why *project* search paths? If the tiGenericEditMediators belongs to the tiOPF
package, then you must extend the package search path.

Project search paths are *not* global search paths. They are only used in
project directories.


> If I change the source
>
> From:
>    {$I tiDefines.inc}
> To:
>    {$I ../Core/tiDefines.inc}
>
> The error goes away and Laz/FPC is happy.
>
> I remembered Graeme suggesting to use the lazarus package file (.lpk) which
> would solve the problem.  I did that, but it still manifests the problem.

What do you mean with 'use that'? What have you tried?


> Graeme suggested that I start a thread here so that he could explain it a bit
> better as it involves not just tiOPF's .lpk, but perhaps the general subject
> of using .lpk files?


Mattias


