Compiling Files

Home Page (Projects)OverviewsHow Do I... TopicsNMAKE Reference

You can select and compile files in any project in your project workspace.

To compile selected files

  1. Select the files in the FileView pane of the Project Workspace window.

  2. With the mouse pointer over the selection, click the right mouse button to display the shortcut menu, and click Compile.

  3. If the project file you are compiling is dependent on any other file, such as a precompiled header (.PCH) file, you should first ensure that the dependent file exists and is up to date before compiling this file.

Note   If you have specified a custom build rule (or rules) for a file, when you click Compile, Visual C++ runs that rule with the file as input, and produces the output specified.