Share via


Build Settings for a Console Program

OverviewHow Do IDetails

The C/C++ Project Settings for console applications are almost the same as for other executables. In the following, projname is the name that is created based on the project name you supply. Following are the default compiler options for new console application projects:

Debug

/nologo /MLd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /Fp"Debug/projname.pch" /YX /Fo"Debug/" /Fd"Debug/" /

Release

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

Linking

The default link options and link libraries for console applications 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:console

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?