[fpc-pascal] compiling on command line linux

Alexander Grotewohl alex at dcclost.com
Mon Feb 15 22:54:40 CET 2021


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-bounces at lists.freepascal.org> on behalf of duilio foschi via fpc-pascal <fpc-pascal at lists.freepascal.org>
Sent: Monday, February 15, 2021 2:20:28 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Cc: duilio foschi <octopushole at 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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210215/936aa6d2/attachment-0001.htm>


More information about the fpc-pascal mailing list