Forum > Options
Where to find my standard units
Bazzao:
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
sky_khan:
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:
Thanks.
I'll give it a go.
And if I change the directory, can I delete the old setting? If so, how?
TIA
Bazza.
Bazzao:
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
sky_khan:
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.
Navigation
[0] Message Index
[#] Next page