Recent

Author Topic: Extending default search path for units  (Read 9084 times)

Bart

  • Hero Member
  • *****
  • Posts: 5349
    • Bart en Mariska's Webstek
Extending default search path for units
« on: February 18, 2008, 11:04:39 am »
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

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
RE: Extending default search path for units
« Reply #1 on: February 18, 2008, 12:21:55 pm »
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

  • Hero Member
  • *****
  • Posts: 5349
    • Bart en Mariska's Webstek
Re: RE: Extending default search path for units
« Reply #2 on: February 19, 2008, 05:40:20 pm »
Quote from: "zaher"
You can add your path in FPC.CFG in fpc bin folder
-FuYourPath

Thanks, will do that.

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

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

  • Jr. Member
  • **
  • Posts: 87
Re: Extending default search path for units
« Reply #3 on: April 28, 2024, 05:44:27 pm »
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

 

TinyPortal © 2005-2018