Techgineer Techgineer - 10 months ago 137
Pascal Question

How do I use multiple source files in Free Pascal on the command-line?

How do I compile a Free Pascal program consisting of multiple source files?
Specifically, is there a Makefile-like system for Free Pascal?

Answer Source

The usual way is by using a uses clause in the preamble of your program to import units from another file. See the Free Pascal Language Reference for a description of the langauge supported by Free Pascal.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download