C/C++ Compiler (cl.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.
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
                                    -♦-