C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Overriding the Default Library
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     When a source file is compiled, the name of a default library is
     encoded in the object file. You determine the library by the
     memory-model and floating-point options selected.
 
     You can link object files with libraries in addition to the
     default library by giving their names on the CL command line. If
     the library name appears before /link, it must have a .LIB
     extension. If it appears after /link, it can have a blank
     extension or none at all. A space or plus sign (+) must follow
     each library name except the last one specified.
 
     To override the default library and link with other libraries,
     use
 
          /link libname /NOD
 
     You do not need to specify libraries unless you do any of the
     following:
 
        ■ Link with additional libraries
 
        ■ Look for libraries in different locations
 
        ■ Override the use of the default library
 
        ■ Link with object files compiled with earlier versions of
          Microsoft C
 
        ■ Link with uncombined libraries
 
     See also: LINK Overview (in LINK help)
               Running LINK (in LINK help)
               Default Library
                                    -♦-