3.2. Eclipse Project Setup

Set up your environment for top level project builds as described above, then start Eclipse. If a workspace selection dialog pops up before the main Eclipse window opens, keeping the default workspace location is usually fine. (You might want to use a separate workspace location for each different version of Eclipse you want to be able to run.) Turn off automatic project builds by deselecting Project > Build Automatically. Create a new CDT project using File > New > Project, select C Project or C++ Project and click Next. Enter your Project name. Uncheck Use default location and set the Location field to the existing project root location proot. Select nmake Makefile Project - GCC under Project type. nmake toolchains with names similar to nmake Makefile - Linux gcc/debug and nmake Makefile - Linux gcc/release should then appear in the column labeled Toolchain. The toolchains are platform specific—by default, only toolchains supported on the current platform are displayed. These project types and toolchains are specific to nmake and were contributed by the nmake CDT plugin. As shown in the following screenshot, select both toolchains (select one and then include the other using shift-click). Click Finish. Answer Yes if the project setup wizard offers to open the C/C++ perspective.

Figure 1. CDT project creation wizard—project type and toolchain selection.

nmake CDT Plugin Project Type and Toolchains