Pascal Resources


Version used in class

Implementation: Free Pascal
Latest Version: 1.0.10 (Windows, Linux) downloads

In the Undergraduate Lab (McBryde 116/118, 124)

Installing Free Pascal is unnecessary as it is available under Windows and Linux in the undergraduate Lab (McBryde 116/118 and 124). In Windows, it is installed at S:\\pp\bin\win32, which can be accessed by Start -> Course Software -> CS3304 -> Free Pascal 1.0.6. Note that although the label on the menu item is Free Pascal 1.0.6, the version installed is actually 1.0.10. In Linux, Free Pascal is installed at /usr/local/bin/fpc on the following computers, which live in McBryde 124, but are all available remotely via ssh.

Information on testing the compiler is here.

Installing Free Pascal

If you feel it is necessary to install Free Pascal locally on your computer, follow the steps below.
  1. Grab the distribution from links above, or visit the Free Pascal Download Page (or one of its mirrors).

  2. Choose an appropriate operating system and follow the instructions for installation under Windows or Linux. The remaining instructions are for a Windows installation. The instructor or GTA can help further with the Linux install during office hours.

  3. Select the most recent version (currently w321010.zip) which does not include the sources, gdb, and the gnu utilities.

  4. Save it to a temporary folder of your choice.

  5. Unzip w321010.zip in the temporary folder.

  6. Launch Install.exe.

  7. The compiler installs in the directory you specify ( C:\pp by default). If you specify a different location, please make sure that the directory name you use does not include any spaces.

    DO NOT install in C:\Program Files\pp!

  8. After installation, add C:\pp\bin\win32 to the PATH environment variable (replace C:\pp with whatever install location you used). For Windows 2000 and Windows XP users, Go to Start Menu->Settings->Control Panel->System. Click on the Advanced tab, then press the "Environment Variables ..." button. Make the change under "System variables" if you want all user accounts on your machine to have Pascal in their search path, or under "User variables for ..." to affect your account only.

  9. Open a command shell, and change to directory C:\pp\demo\win32 (replace C:\pp with whatever install location you used).

  10. Compile winhello.pp, using the command 'fpc winhello.pp', without quotes.

  11. Execute winhello.exe to verify that your installation is correct.

  12. Contact the GTA or instructor if you find errors in this procedure or if you have serious difficulty installing Free Pascal by this procedure.

Useful Links

Sample Programs

Body Mass Index Program: Language: Pascal File: bmi.pp
Body Mass Index Program: Language: C++ File: bmi.cpp


Return
Home