LMAETC17 - 69 CHAPTER 1 This chapter describes the...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
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
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
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 . The following example instructs LIB to combine the object files FIRST.OBJ and SECOND.OBJ and to name the combined library THIRD.LIB: LIB FIRST +SECOND, , THIRD For a more detailed example of running LIB from the command line, see page 591.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern