The Free Pascal Compiler is an open source compiler that is similar to Turbo Pascal. Pascal was originally designed as a teaching language for computers but it can be used to create commercial software and to perform complex mathematical operations. Teachers should consider using Free Pascal for teaching computer programming because it works on all of the major platforms and school, library, and home computers can have Free Pascal installed at no charge. Pascal has a simple syntax that is English-like. This syntax makes Pascal easy to learn and use for both teachers and students. Because of these features, Free Pascal is ideal for educational settings. The Free Pascal Compiler can be downloaded at : www.freepascal.org The Free Pascal Compiler comes in 32 and 64 bit versions. It is available for Intel x86, AMD64 x86/64, PowerPC, PowerPC64, Sparc, and ARM processors. There an old version 1.0 that supports Motorola 68k processors. The Operating System supported include Windows 95+, Windows 64 Bit OS, DOS, Mac OS X, Mac Classic OS, Darwin, Linux, Netware (libc and classic), OS/2, MorphOS. (Other operating system may be supported or become supported with new releases of free pascal) Free Pascal also supports the following systems: Game Boy Advanced Nintendo DS Note: The Mac X version of Free Pascal requires the development tools (Xcode) to be installed on the computer. Xcode can be found on the CD/DVD that came with the Mac or can be downloaded at Apples Developer Connection

20 Responses to “Free Pascal Tutorial 1 – The First Program – Lazarus (Hello World)”

  • Zambaku says:

    Not working…When I run nothing happens, except that the line
    writeln(This is the first program);
    gets highlighted in orange…Like there is something wrong with it, could you help me out?

  • SchoolFreeware says:

    What Operating System are you using? What version of the Pascal Compiler or Lazarus are you using? In this tutorial, if anything other than a New -> Program was used, there might be problems. With New –> Application the computer will generate an error with writeln.

    If that isn’t the problem try this:
    Try uninstalling Lazarus or Pascal Compiler and downloading the full version from Free Pascal’s / Lazarus website. If you are using Mac, make sure that the xCode developer tools are installed.

  • audryzas says:

    course you do as you dont put text in

  • HRANAR says:

    Hi..thanks for your video..I have question..i cant divide numbers in sentences..for example i write “BAKU123″..I want to divide “123″ from “BAKU”..i use “string” command..but it is hard for me..if you help me i will be very glad.

  • SchoolFreeware says:

    Hello, The video that shows how to separate numbers from non numbers is called: Pascal Helper Series Video 3 – Separating Numbers From Non-numbers In A String. The video is on the SchoolFreeware Channel and the code is on the SchoolFreeware website in the tutorial section.

  • shehbaz123 says:

    hello good video btw i have a question i downloaded lazarus for win32 for my windows vista when i open it ot woks and i can enter code but when i run it it wont let me run it it comes up with this error message “Failed to execute c:lazarusfpc2.2.4inx86_64-win64fpc.exe -MObjFPC -Scgi -O1 -gl -vewnhi -l -Fi -Fu. -FEC:UsersSHEHBA~1AppDataLocalTemp -oproject1.exe C:UsersSHEHBA~1AppDataLocalTempproject1.lpr : 216″ can you help me please

  • SchoolFreeware says:

    Hello, that error is unknown to me. But, I see win64 in the error and you mentioned win32 in the message. Double check your version of Windows (32 bit or 64 bit) and then double check the Lazarus/Pascal version that was installed. My guess is that you have the 64 bit Lazarus/Pascal version installed on a 32 bit computer.

    Hope this helps.

  • phantom1190 says:

    save your project before running it.

  • yashhad6513 says:

    Can u make a Simple Tutorial On How To make Games? Like Some Games (as example are) Mario… (I THINK its made with turbo pascal)

    5 ?’s = ????? + Subbed!

  • JoungYseze says:

    thank you

  • mega1megaman1freak says:

    hey um have you heard about the “Dev pascal”. (its like Dev C++ for pascal) I was wondering if it has the same features as these.

  • klauimkik says:

    Schlecht ich mach alle viedeos schlecht für jan !

  • clembarratin says:

    Thanks a lot !!

  • rade374 says:

    Y hate pascal and we using him yn school oal day for mathematics

  • SUNTAUSAM says:

    Thank you for the video, the “end.” highlights orange and I get the following message:
    project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping.
    I have just typed ” writeln(‘This is the first program!’); ” between begin and end.

  • SUNTAUSAM says:

    works fine now, I removed the this line from the program {$IFDEF WINDOWS}{$R project1.rc}{$ENDIF

  • Toastboy246 says:

    my program say compile failed what should i do?

  • SchoolFreeware says:

    @Toastboy246 Try removing the line {$IFDEF WINDOWS}{$R? project1.rc}{$ENDIF} if you haven’t already.

  • Toastboy246 says:

    thanks it works

  • NagyBK says:

    Welcome! You don’t need to put () after readln if you just read the enter.