Forum > Options

Extending default search path for units

(1/1)

Bart:
Hi,

I have several units that I use frequently.
They are in a seperate folder.

For each new project I have to tell the compiler that I use units in that folder.
Obviously there is some place where I can tell lazarus/fpc to search this folder by default. But in what config file, and what is the syntax?

Bart

Zaher:
You can add your path in FPC.CFG in fpc bin folder
-FuYourPath

but i still prefer make a default search pathes like as Delphi

Bart:

--- Quote from: "zaher" ---You can add your path in FPC.CFG in fpc bin folder
-FuYourPath
--- End quote ---

Thanks, will do that.


--- Quote from: "zaher" ---but i still prefer make a default search pathes like as Delphi
--- End quote ---

And by this you mean like in Delphi it would be nice to have a "Default" button in the compilers options dialog to set default compiler options?
I once suggested that in the appropriate subforum here...

If you mean something else, please explain.

Thanks for now.

Bart

What I can do:
This is probably out dated and too mundane for most users but I did have success by..
finding the Lazarus install folder
then the T:\Lazarus\fpc\3.2.2\source
which I got from the IDE [Tools] Option->File=>"FPC source Directory"
Now in the "Lazarus\fpc\3.2.2\source"
I created a folder "Global Units" and copied my unit to there
Looks like it is working for now or at least I have gotten any error messages

Navigation

[0] Message Index

Go to full version