C and C++ Building Tasks: Quick Reference

This topic describes common tasks you can perform when building C and C++ projects.

To perform this task Follow these steps
Build main project.
  • Press F11, or click the Build button in the toolbar, or Choose Run > Build Main Project.
  • Choose Run > Batch Build Main Project to build multiple configurations of main project.
Build any project.
  • Right-click the project node and choose Build Project.
  • Right-click the project node and choose More Build Commands > Batch Build to build multiple configurations of the project at once.
Stop building a project.
  • Choose Run > Stop Build/Run or click the Stop button in the Output window.
Compile a single file.
  1. Select the node of the file you want to compile.
  2. Press F9, or Choose Run > Compile File.
Clean a project.
  • Right-click the project node and choose Clean.
Clean and build the main project.
  • Press Shift-F11, or click Clean and Build button in the toolbar, or choose Run > Clean and Build Main Project.
View build output.
  1. In the Files window, expand the project folder node.
  2. Expand the build folder and subfolders to view object (.o) files.
  3. Expand the dist folder and subfolders to view executable (.exe) files and built libraries.
Correct compilation errors.
  • In the Output window, double-click any highlighted syntax error to jump to the location in the source code where the error occurred.
  • In the Output window, double-click any make error to open the makefile in the target that failed.
Package application.
  • Right-click the project node and choose More Build Commands > Build Package.

Legal Notices