Sign in Join

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

Mailing lists / lazarus / 2008-12

Unit and includepaths and the IDE

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Bart

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.

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. So it seems my assumption thatthe IDE searchpath is determined by fpc.cfg is not correct.

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)?

Bart

Reply by email

Bart
to Mattias Gärtner

Mattias,

Thanks for clearing that up to me.

I'll look into packages, probably at a later point. At the curent stage, my "library of tools" for Laz tends to change frequently, as I learn more to use Laz/fpc. So for the moment I'll not package them.

Bart

Reply by email