There's a command line parameter.. try something like

fpc -FU~/.units.lnx yourapp.pp

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.

--
Alexander Grotewohl
https://dcclost.com

________________________________
From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> on behalf of duilio 
foschi via fpc-pascal <fpc-pascal@lists.freepascal.org>
Sent: Monday, February 15, 2021 2:20:28 PM
To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org>
Cc: duilio foschi <octopush...@gmail.com>
Subject: [fpc-pascal] compiling on command line linux

Today I had to compile a program on my Linux server.

The program was written for windows and needed libraries synapse and lazutils, 
and they were missing from the server.

I copied  all the needed units from my PC into the linux work directory and it 
worked with the usual command

fpc programname.pp

Unfortunately now my work directory is messy with tens of units (belonging to 
libraries synapse and lazutils) unworthily mixed with my poor code.

I guess that the kosher way is to create directories lazutils and synapse 
somewhere in the server but ... where?

Where should libraries be copied in linux?

How to make them accessible to the compiler?

Sorry for being so ignorant... I know how to do it in Lazarus on windows, but 
fpc on linux is rather arcane to me :)

Thank you

Duilio




_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to