Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free Pascal without Lazarus [closed]

Could any of you chaps point me in the direction of a good tutorial or book for Free Pascal that does not rely on using Lazarus? Ideally I would like just to write code in a text editor and compile/link using the command-line. I have no existing knowledge of Pascal at all.

Unfortunately all the material I have uncovered through Google assumes the use of Lazarus, prior knowledge of Pascal or refers only to the pre-Delphi/FPC versions of Pascal without 'modern' features such as dynamic strings, objects and so forth.


1 Answers

Lazarus doesn't change the base dialect possibilities. It is only an IDE and visual library over freepascal, nearly everything nonvisual is FPC.

Just install FPC and compile with

 fpc <programname>

As reference for the dialect see the Free Pascal reference guide, which contains nonvisual examples. When you have a base level of knowledge, you can adapt Lazarus related examples to your own environment.

like image 161
Marco van de Voort Avatar answered Feb 07 '26 15:02

Marco van de Voort



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!