Chapter 3
Compiler usage

Here we describe the essentials to compile a program and a unit. For more advanced uses of the compiler, see the section on conguring the compiler, and the Programmers guide.

The examples in this section suppose that you have a fpc.cfg which is set up correctly, and which contains at least the path setting for the RTL units. In principle this le is generated by the installation program. You may have to check that it is in the correct place (see section 5.2 for more information on this).


 3.1 File searching
  3.1.1 Command line les
  3.1.2 Unit les
  3.1.3 Include les
  3.1.4 Object les
  3.1.5 Conguration le
  3.1.6 About long lenames
 3.2 Compiling a program
 3.3 Compiling a unit
 3.4 Units, libraries and smartlinking
 3.5 Reducing the size of your program