Compiling a unit is not essentially di erent from compiling a program. The di erence is mainly that the linker isn't called in this case.
To compile a unit in the le foo.pp, just type :
fpc foo
|
Recall the remark about le extensions in the previous section.
When all went well, you will be left with 2 (two) unit les:
Both les are needed if you plan to use the unit for some programs. So don't delete them. If you want to distribute the unit, you must provide both the .ppu and .o