After the installation is completed and the optional environment variables are set as described above, your first program can be compiled.
Included in the Free Pascal distribution are some demonstration programs, showing what the compiler can do. You can test if the compiler functions correctly by trying to compile these programs.
The compiler is called
To compile a program (e.g demo\hello.pp) simply type :
fpc hello |
fpc -Fuc:\pp\units\go32v2\rtl hello |
fpc -Fu/usr/lib/fpc/NNN/units/linux/rtl hello |
If you got no error messages, the compiler has generated an executable called hello.exe under DOS, OS/2 or WINDOWS, or hello (no extension) under UNIX and most other operating systems.
To execute the program, simply type :
hello |
Hello world |