Project Settings Dialog Box

How Do IOverview

Set compiler and linker options in the Project Settings dialog box, which you can open by clicking Settings on the Project menu.

The Reset button resets the project settings of a project or a file to the settings that existed when the project or file was created. This button is available if both of the following conditions are met:

  • A single project or a single file is selected in the Settings For pane of the Project Settings dialog box.

  • The settings of the selection have changed.

The Reset button is not available when multiple projects or files are selected.

For information on the build options available in the Project Settings dialog box, either type an option name in the Search dialog box (Help menu) or see Set Compiler Options and Set Linker Options for overview lists.

Applying settings to particular entities

In the Project Settings dialog box you can specify all the settings for your build. You can specify settings for particular source files, for a version (release or debug), or for the project as a whole. The mechanism for determining this distinction is the left half of the dialog box, which is labeled Settings For.

Determining which settings are in effect

The Common | Project | Source File Options text box, at the bottom right of the Project Settings dialog box, displays the compiler options that are currently selected. The options are displayed using their command-line-equivalent names, such as /G5.

The name of this text box changes depending on what is selected in the Settings For pane in the left half of the dialog box. When a project is selected in Settings For, the text box is named Project Options. When a source file is selected, the text box is named Source File Options. When multiple projects or files are selected, the text box is named Common Options, and it displays the options that are common to the selections.

You cannot type in the text box when it is named Common Options. However, when it is named Project Options or Source File Options, the text box accepts any option that is available from the C/C++ tab. It also accepts those compiler options that are otherwise available only from the command line.

You are responsible for the accuracy of any option you type in the text box. If an option is recognized as one that can be set using a dialog box control, the dialog box control is changed to reflect the option. However, if the option is not recognized, it is left in the options string and passed to the compiler as is.