Build Settings for non-MFC Programs
| Overview | How Do I | Details |
The build settings for a Win32 (non-MFC) program for Windows are almost the same as for MFC-based executables. In the following, projname is the name that is created based on the project name you supply. These are the default compiler options for new application projects:
Debug
/nologo /MLd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"Debug/projname.pch" /YX /Fo"Debug/" /Fd"Debug/" /c
Release
/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"Release/winapp.pch" /YX /Fo"Release/" /c
Linking
The default link options and link libraries for a Win32 application are:
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows
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.