Microsoft KB Archive/39142

From BetaArchive Wiki

How to Create Quick Libraries PSS ID Number: Q39142 Article last modified on 01-12-1989 PSS database name: S_QuickC

1.00 1.01

MS-DOS

Summary:

In the QuickC environment, linking with non-core library routines can be performed in one of the following two ways:

  1. Using a program list
  2. Using Quick libraries

Quick libraries, which are loaded when QuickC is invoked, are memory resident. They reduce available RAM for your program but provide faster link times. Additionally, Quick libraries are loaded as a whole, unlike program list libraries, which link only those functions that are referenced by the calling program.

More Information:

Quick libraries can be created in the following two ways:

  1. Explicitly using the linker (LINK.EXE)

    When using the linker to create a Quick library, the QUICKLIB.OBJ file (located in the subdirectory) must be the first file listed on the link line. After this object file, list the additional object files and stand-alone libraries that are to be placed in the Quick library. The /Q switch must also be added to inform the linker that a Quick library is to be generated. Consequently, a .QLB extension is tacked on to the Quick library name rather than a .EXE extension.

    The following is an example:

    link QUICKLIB.OBJ [file1.obj] [file2.obj] [lib1.lib] [lib2.lib] /Q

    This example generates a Quick library entitled QUICKLIB.QLB (unless a different name is stated at the [RUN file]: prompt)

    This is the only method of Quick library creation under QuickC Version 1.00. Refer to Pages 237-240 in the “Microsoft QuickC Programmer’s Guide” for further information on creating Quick libraries using the Microsoft linker.

  2. Using the QLIB.EXE utility (supported Under Version 1.01 Only)

    The Quick library builder, QLIB.EXE, came with QuickC Version 1.01. This new utility simplifies the process of creating Quick libraries and adds flexibility with some select options. It works in a similar fashion to the linker, but the inclusion of QUICKLIB.OBJ on the command line is no longer necessary (QLIB does this for you). Following the QLIB command to invoke the utility, list those object files, C source files (which are automatically compiled), and/or libraries you want to be placed in the Quick library.

    The following is an example:

    QLIB [file1.obj] [file2.obj] [/L] [lib1.lib] [lib2.lib]

    This example builds the Quick library FILE1.QLB, which consists of routines defined in the two .OBJ files and the two libraries. The /L is used to specify those libraries that are to be added. Note: This utility is only included with QuickC Version 1.01.

    Please refer to QLIB.DOC on the QuickC Version 1.01 Distribution Disk number 4 for more information on QLIB options and functionality.

Copyright Microsoft Corporation 1989.