next up previous contents index
Next: The Language Up: Invocation Previous: Using Makefiles

Additional Libraries

Utility modules or packages which are needed in more than one project may be maintained in separate directories. If these directories are put into the environment variable MODPATH (a colon-separated list of directories like PATH) they are found by the compiler, the makefile generator, and by the debugger.gif

Usually, libraries are kept in three archives:

lib.a:
This archive contains the object files. Note that all objects files of a library will be put into all your binaries unless you use an archive for them. You are free to use another name for the archive as long as it ends in .a.
SYM and REF:
Symbol files and reference files may be archived in SYM and REF. Once you have created them, the compiler automatically finds symbol files there and stores newly generated symbol files and references files in these archives.

Note that makefiles are to be changed if you switch to archives:



Andreas Borchert
Mon Jun 3 16:17:20 MET DST 1996