共用方式為


Build Settings for a Static Library

OverviewHow Do IDetails

The following build settings are generated for static libraries. Projname is the name that is created based on the project name you supply.

Debug

/nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"Debug/projname.pch" /YX /Fo"Debug/" /Fd"Debug/" /c

Release

/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"Release/projname.pch" /YX /Fo"Release/" /c

The default LIB options for static libraries are:

Debug

/nologo /out:"Debug\projname.lib"

Release

/nologo /out:"Release\projname.lib"

If you are using an external makefile, you can use the default build settings as a guide for the settings to use in your makefile.

What do you want to know more about?