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 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.
|
- Select the node of the project you want to clean and build.
- Choose Run > Clean and Build Main Project (Shift-F11).
|
View build output.
|
-
In the Files window, expand the project folder node.
- Expand the build folder to view object (.o) files.
- 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.
|