Partager via


/Zl - Remove Default-Library Name from Object File

This option tells the compiler not to place the default-library name in the object file. Ordinarily, the compiler puts the name of the library in the object file so the linker can use the correct library to link with the object file. As a result, the object file is slightly smaller. The option affects all files that follow it on the command line.

Use the /Zl option when you are using the LIB utility to build a library. You can use /Zl to compile the object files you plan to put in your library, thereby omitting the default-library names from your object modules. Although the /Zl option saves only a small amount of space for a single object file, the total amount of space saved is significant in a library containing many object modules.

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.