Using LIB to Combine Two Libraries (25108)



The information in this article applies to:

  • Microsoft Library Manager for MS-DOS 3.0
  • Microsoft Library Manager for MS-DOS 3.04
  • Microsoft Library Manager for MS-DOS 3.07
  • Microsoft Library Manager for MS-DOS 3.08
  • Microsoft Library Manager for MS-DOS 3.1
  • Microsoft Library Manager for MS-DOS 3.11
  • Microsoft Library Manager for MS-DOS 3.14
  • Microsoft Library Manager for MS-DOS 3.17
  • Microsoft Library Manager for MS-DOS 3.2
  • Microsoft Library Manager for MS-DOS 3.20.010
  • Microsoft Library Manager for MS-DOS 3.31
  • Microsoft Library Manager for MS-DOS 3.4
  • Microsoft Library Manager for OS/2 3.11
  • Microsoft Library Manager for OS/2 3.14
  • Microsoft Library Manager for OS/2 3.17
  • Microsoft Library Manager for OS/2 3.2

This article was previously published under Q25108
The Microsoft Library Manager utility (LIB.EXE) can be used to combine two libraries into one.

The following is an example of how to add the contents of LIB1.LIB to LIB2.LIB in a single LIB command:

LIB LIB2.LIB+LIB1.LIB;

You may also have LIB prompt you for input, in which case the input and prompts will appear as follows:

LIB <ENTER> Library name: LIB2.LIB <ENTER> Operations: +LIB1.LIB <ENTER>

Note that the .LIB extension is required; otherwise, LIB will assume LIB1 is an object module.

Modification Type:MajorLast Reviewed:10/23/2003
Keywords:kb16bitonly KB25108