In Visual Studio, compilation and linking are controlled by setting properties on a file or project. When a project is built, the properties are examined and compiler options are set. There is usually a one to one correspondence between a compiler option and a property. Build options can be set for all the files in a project using the project property page, or may be set for a single source file using the individual file property page.
To set options that apply to a Project as a whole:To set options that apply to an individual source file:
If the Solution Explorer is not visible you can make it visible by selecting it from the "View" pull down menu.
The project Property Pages dialog box will appear:
The pane on the left hand side of the property pages displays a series of categories. When a category node is selected, the property page for that category will appear. When a property on a page is selected, a pane in the lower right part of the property page displays the property name and a brief description for the property.
Categories under this node control compile-time settings, and what sort of diagnostic information is produced. Many of the options in this folder are the same for project and individual file settings. However, some options are only appropriate for either project settings or file settings. An example would be the option to perform global runtime checking, which requires that all source files in the project be compiled with the option enabled.
Settings that affect linking the project appear under the 'Linker' node. These options allow specification of library search paths, which libraries are linked, and other linker related settings. Linker options that are not covered by a property may be set using the "Additional Linker Options" property. This folder will only appear if the project properties are being viewed.