LINK Help (linkx.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Entering Library Files as Object Files
                                             ◄Up► ◄Contents► ◄Index► ◄Back►
─────Entering Library Files as Object Files─────────────────────────────────
 
     You can enter library files as load libraries in the <objfiles>
     field. The .LIB filename extension must be used; otherwise, LINK
     assumes an .OBJ extension.
     See: ◄<objfiles> Field►
          ◄<libraries> Field►
 
     A library named in the <objfiles> field adds every module to the
     main output file; this is called a load library. The effect is the
     same as if all the library's object names were specified in the
     <objfiles> field. A larger main output file can result. A library
     named in the <libraries> field adds only those modules required to
     resolve external references.
 
     Loading an entire library can be useful
 
         ■ As a convenient way of repeatedly specifying the same group
           of object files
 
         ■ To make available any modules that are not needed to resolve
           references but that may be needed at run time
 
         ■ To cause a library to be placed in an overlay
 
         ■ When debugging
 
     LINK searches for load libraries the same way it searches for all
     <objfiles>. It does not search for load libraries in directories
     named in the <libraries> field.
                                    -♦-