Build Settings for an MFC EXE Program

OverviewHow Do IDetails

The following C/C++ settings are the default MFC AppWizard EXE settings that are common for each type of project.

Common Compiler Debug Settings

/nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"Debug/projname.pch"

The exceptions to the above are that static lib has /Z7 instead of /Zi and console applications do not use the define /D “_WINDOWS”.

Common Compiler Release Settings

/nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"Release/projname.pch"

The exception to the above is that console applications do not use the define /D “_WINDOWS”.

Common Linker Debug Settings

/nologo /subsystem:windows /incremental:yes /pdb:"Debug/projname.pdb" /debug /machine:I386 /out:"Debug/projname.exe"

Console applications will have the /subsystem:console option set. The settings for the /machine option are determined by your machine type.

Common Linker Release Settings

/nologo /subsystem:windows /incremental:no /pdb:"Release/projname.pdb" /machine:I386 /out:"Release/projname.exe" /out:"Debug/projname.exe"

Console applications will have the /subsystem:console option set. The settings for the /machine option are determined by your machine type.

What do you want to know more about?