Compiling a unit is not essentially different from compiling a program. The difference is mainly that the linker isn’t called in this case.
To compile a unit in the file foo.pp, just type :
Recall the remark about file extensions in the previous section.
When all went well, you will be left with 2 (two) unit files:
Both files 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 file. One is useless without the other.