3.3. Eclipse Project Builds

Select the project in the Project Explorer view, then build using Project > Build Project. This launches a top-level project build for the active configuration using nmake install. Build log output displays in the console view as seen below, in this case showing a debug build. Any errors and warnings from the C compiler and nmake are highlighted in the console build log. Problem markers are also created (viewable in the Problems view) that, if possible, map back back to the source file location where the error occurred.

Figure 2. Console build log for a project build.

project build

You can clean up by doing Project > Clean..., which runs the command nmake recurse clobber clobber.install. Uncheck Start a build immediately unless you want to rebuild immediately after clobbering.

The above procedure generates objects compiled for debugging. To generate objects compiled for release, change the active configuration by selecting the project in the Project Explorer, then select Project > Build Configurations > Set Active > nmake Makefile - Linux gcc/release (or the equivalent for your platform), and rebuild the project. Alternatvely, select Manage... to bring up the Manage Configurations dialog and select the desired build configuration as shown in the following screenshot:

Figure 3. Manage build configurations dialog.

manage configurations dialog