This topic describes common tasks you can perform when building C and C++ projects.
To perform this task |
Follow these steps |
Build selected project.
|
- Select the project and click the Build button in the toolbar, or Choose Run > Build Project.
- Choose Run > Batch Build Project to build multiple configurations of selected 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.
|
- Select the node of the file you want to compile.
- Press F9, or Choose Run > Compile File.
|
Clean a project.
|
-
Right-click the project node and choose More Build Commands > Clean.
|
Clean and build a project.
|
- Select project and press Shift-F11, or click Clean and Build button in the toolbar, or choose Run > Clean and Build Project.
|
View build output.
|
-
In the Files window, expand the project folder node.
- Expand the build folder and subfolders to view object (.o) files.
- 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.
|