[fpc-pascal] compiling on command line linux

duilio foschi octopushole at gmail.com
Tue Feb 16 10:02:45 CET 2021


very good.

I created the new directories

./synapse   and
./lazutils

in

/usr/lib/fpc/3.2.0/units/x86_64-linux

It worked like a charm.

It seems that all the units in that directory are searched by default.

Thank you

Duilio

On Tue, Feb 16, 2021 at 7:29 AM Sven Barth <pascaldragon at googlemail.com>
wrote:

> Am 15.02.2021 um 22:54 schrieb Alexander Grotewohl via fpc-pascal:
>
> There's a command line parameter.. try something like
>
> fpc -FU~/.units.lnx yourapp.pp
>
>
> Just to explain what -FUxxx does: this sets the unit output path. If you
> have precompiled units (or source files) in a different location you need
> to use -Fuxxx which sets the unit search path.
>
>
> Of course you would have to remember to do that for EVERY compile (I set
> my text editor to do it) but you could probably add it to your fpc.cfg too.
>
>
> You can add additional parameters to a custom file (just like you'd do
> with the global fpc.cfg) and then add it using the @ parameter:
>
> fpc @your.cfg yourapp.pp
>
> Regards,
> Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210216/af24f958/attachment.htm>


More information about the fpc-pascal mailing list