Using LIB to Combine Two Libraries

Last reviewed: July 17, 1997
Article ID: Q25108
3.0x 3.10 3.11 3.14 3.17 3.20 3.20.010 3.31 3.40 | 3.11 3.14 3.17 3.20
MS-DOS                                           | OS/2
kbtool

The information in this article applies to:

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

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.


Additional reference words: kbinf kbinf 3.00 3.10 3.20 3.40
KBCategory: kbtool
KBSubcategory: LibIss
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.