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
|
-
Select the node of the project you want to build.
-
Choose Run > Build Project (F11) or right-click any project in the
Projects window and choose Build.
|
Compile a single file.
|
- Select the node of the file you want to compile and choose Run > Compile File (F9).
- Right-click the node of the file and choose Compile File.
|
Clean a project.
|
-
Right-click the project node and choose More Build Commands > Clean.
|
Clean and build the selected project.
|
- Right-click the project node and choose Clean and Build.
- Select the node of the project you want to clean and build, choose Run > Clean and Build (Shift-F11).
|
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 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.
|