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

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.2.2

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:


next up previous contents index
Next: The Language Up: Invocation Previous: Using Makefiles   Contents   Index
Andreas Borchert 2003-12-10