Managing Libraries with LIB

You may find it useful to create libraries of Common Object File Format (COFF) object files to organize shared components of multiple projects.

In the Microsoft visual development environment, you create and manage object libraries with a variety of dialogs. From the command line, you can use the Microsoft 32-Bit Library Manager (LIB.EXE) to manage COFF object libraries, create export files and import libraries to reference exported symbol definitions when you build Dynamic Link Libraries (DLLs), and extract library members.

You use the standard libraries, import libraries, and export files LIB creates with LINK when building a 32-bit program. (LINK is described in Using the Compiler and Linker from the Command Line and Compiler and Linker Options.) The three LIB modes -- creating standard (COFF) libraries, creating import libraries and export files, and extracting library members -- are mutually exclusive. You can use LIB in only one mode at a time.

You can use LIB to perform the following library-management tasks:


Note: You cannot both delete a member and extract it to a file in the same step. You must first extract the member object using /EXTRACT, then run LIB again using /REMOVE.

This section describes the Microsoft 32-Bit Library Manager (LIB.EXE). The following topics are covered: