C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Omitting Default Library Name from Object File (/Zl)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Zl
 
     The /Zl option stops the compiler from placing the name of the
     default library in the object file. It applies to all files that
     follow it on the command line.
 
     Ordinarily, the compiler places the name of the combined default
     library for your memory model and floating-point options
     (mLIBCf.LIB) in the object file for the linker to read. This
     allows the correct library to be linked with a program
     automatically.
 
     You may find /Zl useful when building a library of routines. Not
     every routine in the library needs to contain the default library
     information. Although the /Zl option saves only a small amount of
     space for a single object file, the total space saved is
     significant in a library with many object modules.
 
     When you link a library of object modules created with /Zl and a
     C program file compiled without /Zl, the program file supplies
     the default-library information.
 
     See also: Memory-Model Selection
               Floating-Point Options
                                    -♦-