次の方法で共有


/Zl   (Omit Default Library Name)

OverviewHow Do ICompiler Options

This option omits the default library name from the .OBJ file. By default, CL puts the name of the library into the .OBJ file to direct the linker to the correct library. For more information on the default library, see Use Run-Time Library.

You can use /Zl to compile .OBJ files you plan to put into a library. Although omitting the library name saves only a small amount of space for a single .OBJ file, the total space saved is significant in a library that contains many object modules.