LIB Help (lib.hlp) (
Topic list)
Add Command (+)
◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
─────LIB────────────────────────────────────────────────────────────────────
Syntax: +name
The add command (+) adds an object module to a library or combines
two libraries. The new modules are added to the end of a library.
Adding an Object Module to a Library
Specify the name of the object file immediately after the plus
sign (+). You can specify a pathname with the filename. If you
omit the extension, LIB assumes an .OBJ extension.
LIB uses the base name of the object file as the name of the
object module in the library. For example, if the object file
B:\CURSOR.OBJ is added to a library file, the name of the
corresponding object module is CURSOR.
Combining Two Libraries
Specify the name of the library to be added to the <oldlibrary>
file immediately after the plus sign. You can specify a pathname
with the filename. You must include the extension (usually .LIB);
otherwise, LIB looks for a file with an .OBJ extension.
The library being added still exists as a separate file; LIB
copies the modules without deleting them.
-♦-