Recent

Author Topic: How to start?  (Read 3420 times)

nfol

  • New Member
  • *
  • Posts: 17
How to start?
« on: September 11, 2018, 03:52:08 am »
I used Turbo Pascal on a DOS computer many years ago and would like to restart. However, I'm confused by the many download options (even though I tried to read some of the guides).
 
Would someone be so kind as to inform me exactly which files to download and install.
Also, do I need to download the units crt, printer or wincrt? Where to place these?

I very much appreciate any help.

Best regards,
nfol

Windows 10
Intel(R) Core(TM) i7-6700 CPU
 

Handoko

  • Hero Member
  • *****
  • Posts: 5149
  • My goal: build my own game engine using Lazarus
Re: How to start?
« Reply #1 on: September 11, 2018, 04:24:48 am »
Hello nfol,
Welcome to the forum.

There are 2 different installers available:
- Lazarus + FPC
- FPC only

Normally, you should use Lazarus + FPC. Lazarus is the GUI IDE editor, it offers some extra tools for help you building graphical interface applications. But if you want to build console mode programs only, FPC is enough.

You can download the installers here:
https://sourceforge.net/projects/lazarus/files/
https://www.freepascal.org/download.var

... do I need to download the units crt, printer or wincrt? Where to place these?

No, you don't. They're bundled on the default installation. You just need put them in the uses clause.

Some reading materials I recommend:

List of tutorials with wide range of topics (graphics, database, printer, web, etc):
http://wiki.freepascal.org/Lazarus_Documentation#Lazarus.2FFPC_.28Free_Pascal.29
http://wiki.freepascal.org/Category:Tutorials

(Free) Pascal reference guide:
http://freepascal.org/docs-html/current/ref/ref.html

Some cool Pascal tricks:
http://lazplanet.blogspot.co.id/

Pascal video tutorials:
https://devstructor.com/index.php?page=tutorials

Lazarus IDE tricks:
http://wiki.freepascal.org/New_IDE_features_since
« Last Edit: September 11, 2018, 04:28:06 am by Handoko »

nfol

  • New Member
  • *
  • Posts: 17
Re: How to start?
« Reply #2 on: September 11, 2018, 09:41:14 am »
Thank you for your help.
I selected the Lazarus-solution (for Win 32 and 64 bit) and made my first little program.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11446
  • FPC developer.
Re: How to start?
« Reply #3 on: September 11, 2018, 10:01:52 am »
Note that lazarus is perfectly fine for building console applications too.

Most console apps in the Free Pascal SVN repository come with lazarus projects even.

nfol

  • New Member
  • *
  • Posts: 17
Re: How to start?
« Reply #4 on: September 11, 2018, 01:47:42 pm »
> Note that lazarus is perfectly fine for building console applications too.

Ok.

How is it; when I have installed Lazarus+FPC, is it possible to run that installation like I did not have Lazarus?

I ask this strange question because I like to introduce my little son to the very concept of programing. I believe that is best done without a lot of fancy things, but just

Program x;
Begin
End.

from which to increase the complexity.

Handoko

  • Hero Member
  • *****
  • Posts: 5149
  • My goal: build my own game engine using Lazarus
Re: How to start?
« Reply #5 on: September 11, 2018, 02:05:09 pm »
The FPC package actually consists of 2 programs:
- FPC the compiler
- FP the text-based editor

You can start the FP text-based editor by typing fp [enter] on your command prompt.
« Last Edit: September 11, 2018, 02:09:12 pm by Handoko »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: How to start?
« Reply #6 on: September 11, 2018, 02:13:40 pm »
How is it; when I have installed Lazarus+FPC, is it possible to run that installation like I did not have Lazarus?

I ask this strange question because I like to introduce my little son to the very concept of programing. I believe that is best done without a lot of fancy things, but just

Program x;
Begin
End.

from which to increase the complexity.

The FPC installation is in the folder fpc. You can use any editor you want, to create a pascal file, and then call the compiler (fpc.exe). Not sure what args you need to pass, but there is online docs (google).

There also is fp.exe in the fpc folder (an old style like IDE, but IMHO it really only is any good for nostalgic reasons).

In the end I recommend to still use the Lazarus IDE.
Project > New > "Program"

This gives you an empty command line program (you can get rid of the pre-defined use).
Then you still get the comfort of the IDE, you dont need to worry how to call the compile, and you start at zero.

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: How to start?
« Reply #7 on: September 11, 2018, 04:04:53 pm »
Just use Lazarus.

Project -> New Project -> Simple Program

You'll get the barest of programs  :)

 

TinyPortal © 2005-2018