[fpc-pascal] compiling on command line linux

duilio foschi octopushole at gmail.com
Mon Feb 15 20:20:28 CET 2021


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/e253b07c/attachment.htm>


More information about the fpc-pascal mailing list