The LIB Command Line

You can run LIB and specify all the input it needs from the command line. The LIB command line has the following form:

LIB oldlibrary[[options]][[commands]] [[,[[listfile]] [[,[[newlibrary]]]]]] [[;]]

Fields must appear in order but can be left blank (except for oldlibrary). A semicolon (;) after any field terminates the command; LIB assumes defaults for any remaining fields. The fields are described in “Specifying LIB Fields” beginning on page 223.

You can terminate the session at any time by pressing CTRL+C.

The following example instructs LIB to combine the object files FIRST.OBJ and SECOND.OBJ and to name the combined library THIRD.LIB:

LIB FIRST +SECOND, , THIRD

For a more detailed example of running LIB from the command line, see page 231.