This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 69 CHAPTER 1 This chapter describes the Microsoft Library Manager (LIB) version 3.20. LIB creates and manages standard libraries, which are used to resolve references to external routines and data during static linking. Overview LIB creates, organizes, and maintains standard libraries. Standard libraries are collections of compiled or assembled object modules that provide a common set of useful routines and data. You use these libraries to provide your program with the routines and data at link time; this is called static linking. After you have linked a program to a library, the program can use a routine or data item exactly as if it were included in the program. With LIB you can create a library file, add modules to a library, and delete or replace them. You can combine libraries into one library file and copy or move a module to a separate object file. You can also produce a listing of all public symbols in the library modules. LIB works with the following kinds of files: u Object files in the Microsoft Relocatable Object-Module Format (OMF), which is based on the Intel 8086 OMF u Standard libraries in Microsoft library format u Import libraries created by the Microsoft Import Library Manager (IMPLIB) u 286 XENIX archives and Intel-style libraries This chapter distinguishes between an “object file” and an “object module.” An object file is an independent file that can have a full path and extension (usually .OBJ). An object module is an object file that has been incorporated into a library. Object modules in the library have only base names. For example, SORT is an object-module name, while B:\RUN\SORT.OBJ is an object-file name. Running LIB To run LIB, type LIB at the operating system prompt and press ENTER. You can provide input to LIB in three ways, separately or in combination: u Specify input on the command line. u Respond to the prompts that LIB displays. u Specify a response file that contains the expected input. Filename: 24ecc540a537e95aa3f8bc80f625403b0386778e.DOC Project: Template: Author: Last Saved By: Revision #: 0 Page: 69 of 13 Printed: 10/14/92 15:57 A10/P10 Environment and Tools 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,” which begins on page 583. To terminate the session at any time, press CTRL+C....
View Full Document
This note was uploaded on 01/24/2012 for the course EE 3751 taught by Professor Desouza during the Spring '04 term at LSU.
- Spring '04