Zitat von Bart <bartjunk64@gmail.com>:

> Hi,
>
> Like most others (I guess), I have some units that I use frequently
> (like about.pp etc.).
> These units reside in a specific folder.
> Now I've added this folder, and the incude subdirectories to fpc.cfg,
> be4cause I got tired of adding this in Project->Compiler Options for
> every projec.

The normal way is to put them into a package and add the package to the project.
Package / open recent package / your package.lpk / more / add to project.


> In this case:
> -FuF:\LazarusProjecten\MijnLib
>
> and
> -FiF:\LazarusProjecten\MijnLib\include
> -FiF:\LazarusProjecten\MijnLib\include\win
>
> This seems to work fine, at least my project will compile.
> However, if I try to Ctrl-Click to the unit or includefile (or the
> compiler finds an error in it), the IDE says it cannot find it.

Yes. The values of the fpc.cfg are considered to belong to FPC.
The IDE assumes that every ppu in the fpc.cfg search paths have a source in the
fpc sources. This way the IDE can spot some common misconfigurations.


> So it seems my assumption thatthe IDE searchpath is determined by
> fpc.cfg is not correct.

correct. Well, at least partly.


> Is there any way to tell the IDE that it must extend its searchpath to
> my units/includes, without having to specify it for each project (the
> latter also is not very convenient if I copy the project to my linux,
> becaus then the paths must be reset)?

Create a package. This will also make sure, that you don't get accidentally
wrong ppus, that copying to other computers/platforms will be easier, and fpdoc
will be easier, and i18n, and ...


Mattias


