Building a Local/Remote C/C++ project

Before you can build a remote C/C++ project, ensure you have properly set up your build command (see Creating a makefile).

Configuring the build default

By default, projects in the workspace are build automatically when any source file is saved. You can enable this for your remote C/C++ project by configuring the Remote Make Builder in project properties.

To enable automatic builds:

You can choose to change the default build behavior for your project. To configure manual builds, select Project > Build automatically.

Configuring to Build Manually from the Project Menu

This will toggle the option. If you now select Project, you will see that the Build Automatically setting is inactive or unchecked.

Build Manually

You can use the same toggling technique to reset the default to build automatically.

Building your workspace or project

Regardless of the configured build default, you can manually build a project or workspace at any time.

Building the workspace

Use CTRL + B to build the entire workspace.

Building a project

You can build your project using one of the following two methods:

  1. Select your remote project in the Project Explorer, right click, and select Build Configurations > Build > All:

  2. Build Configurations

  3. Select your remote project in the Project Explorer and select Project > Build Project:

  4. Build Project

Viewing build output in the Console view

You can view build output in the Console View:

Console View

Viewing and fixing build errors from the Problems view

You can view build errors in the Problems View.

Problems View

To fix a build error, double click on the error in the Problems view. The editor opens and the line containing the error is highlighted. Fix the error, save the change, and re-build the project.

Editor View

Running the clean command

You can run the clean command defined in your project's makefile either by selecting Project > Clean:

Project clean


or by selecting the project in the Project Explorer, right-clicking, and selecting Clean Project:


Clean project


Related tasks
Create a Remote Connection
Creating a Local/Remote C/C++ project
Creating a C or C++ source file
Creating a makefile
Editing a C or C++ File
Configuring build options