C and C++ Building Tasks: Quick Reference

This topic describes common tasks you can perform when building C and C++ projects. For more detailed information, click the links in the right column.

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

Legal Notices