Recent

Author Topic: Where to find my standard units  (Read 3723 times)

Bazzao

  • Full Member
  • ***
  • Posts: 178
  • Pies are squared.
Where to find my standard units
« on: May 31, 2017, 01:09:49 am »
Still coming to grips from being a Delphi5 user to Lazarus.

Do I have to enter in each new project the directory where I store my personal standard units, or is there a permanent setting?.

I seem to have to go to "Options for project" and enter the directory under "Other unit files (-Fu)" otherwise the compiler cannot find my standard units.

Delphi5 had a permanent global setting.

Other info:
Lazarus 1.6.4
Windows 10 /64.

TIA
Bazza
Bazza

Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64
Windows 10.

sky_khan

  • Guest
Re: Where to find my standard units
« Reply #1 on: May 31, 2017, 01:31:03 am »
I'm not aware of such setting in Lazarus but you can add them as compiler settings as -Fu{absolute path to your units} in LazarusDir/fpc/{fpc_version}/bin/{cpu/platform}/fpc.cfg. On my windows machine its located in lazarus\1.6.4\fpc\3.0.2\bin\i386-win32\fpc.cfg

Bazzao

  • Full Member
  • ***
  • Posts: 178
  • Pies are squared.
Re: Where to find my standard units
« Reply #2 on: May 31, 2017, 01:33:17 am »
Thanks.

I'll give it a go.

And if I change the directory, can I delete the old setting? If so, how?

TIA

Bazza.

Bazza

Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64
Windows 10.

Bazzao

  • Full Member
  • ***
  • Posts: 178
  • Pies are squared.
Re: Where to find my standard units
« Reply #3 on: May 31, 2017, 01:36:09 am »
It's OK. I thought you posted a command line.

I've opened the .cfg file and it seems to be friendly enough.

Thanks.

bazza
Bazza

Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64
Windows 10.

sky_khan

  • Guest
Re: Where to find my standard units
« Reply #4 on: May 31, 2017, 01:38:33 am »
Yep. It's just a text file, one compiler setting per line. They are treated as you give command line options to compiler. You can modify it as you wish. Give it a look, you'll figure out.

Bazzao

  • Full Member
  • ***
  • Posts: 178
  • Pies are squared.
Re: Where to find my standard units
« Reply #5 on: May 31, 2017, 01:40:05 am »
Yep. That did the trick.

My config file was not the exact path, but easily findable given your instructions.

Thanks

Bazza
Bazza

Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64
Windows 10.

 

TinyPortal © 2005-2018