<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
There's a command line parameter.. try something like<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
fpc -FU~/.units.lnx yourapp.pp<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
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.<span id="ms-outlook-android-cursor"></span><br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
--<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Alexander Grotewohl<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<a href="https://dcclost.com">https://dcclost.com</a></div>
</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of duilio foschi via fpc-pascal <fpc-pascal@lists.freepascal.org><br>
<b>Sent:</b> Monday, February 15, 2021 2:20:28 PM<br>
<b>To:</b> FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br>
<b>Cc:</b> duilio foschi <octopushole@gmail.com><br>
<b>Subject:</b> [fpc-pascal] compiling on command line linux</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>Today I had to compile a program on my Linux server.</div>
<div><br>
</div>
<div>The program was written for windows and needed libraries synapse and lazutils, and they were missing from the server.</div>
<div><br>
</div>
<div>I copied  all the needed units from my PC into the linux work directory and it worked with the usual command</div>
<div><br>
</div>
<div>fpc programname.pp</div>
<div><br>
</div>
<div>Unfortunately now my work directory is messy with tens of units (belonging to libraries synapse and lazutils) unworthily mixed with my poor code. </div>
<div><br>
</div>
<div>I guess that the kosher way is to create directories lazutils and synapse somewhere in the server but ... where?</div>
<div><br>
</div>
<div>Where should libraries be copied in linux?</div>
<div><br>
</div>
<div>How to make them accessible to the compiler?</div>
<div><br>
</div>
<div>Sorry for being so ignorant... I know how to do it in Lazarus on windows, but fpc on linux is rather arcane to me :)</div>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>Duilio</div>
<div><br>
</div>
<div> </div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>