Home page Models Systems Tools IT staff References
CDT is an Eclipse plug-in that supports C/C++ development within the Eclipse environment. It knows about C/C++ syntax and provides various means for navigating within a C/C++ project - within and across C/C++ source files. This is the CDT official web site.
CDT is installed from within Eclipse, so there is no separate install for different operating systems. This makes installing from a script difficult if not impossible, which means using one script to set up a system with all our development tools problematic. Even from within Eclipse installing CDT is somewhat tricky because only a subset of the possible CDT modules should be installed. If certain ones are installed then the install does not work (need to specify those???).
The CDT download page, accessed from the main CDT web page, shows different downloads for different versions of Eclipse. Make sure to choose the correct CDT version for the version of Eclipse you are using. Curerntly we use Eclipse version 3.5.x, so we use the 6.0.x version of CDT.
To install:
This will show two options. The first one is CDT Main Features. Select it (check its box), which will install all its subcomponents. The 2nd one is CDT Optional Features. Open it to show its subcomponents and only select the ones we need, otherwise the install will fail (I don't recall why at this point). The ones we need are: Tools Utilities and Tools Debugger (??? are these correct? are there others?) Then click the finish button to start the installation.
CDT integrates seamlessly with Eclipse. The Eclipse project explorer and its various pop-menus provide features for C/C++ - creating new C/C++ projects, bew C++ classes, etc. You can select a variable name, function name or class name and hit F3 to navigate to the source code location where that item is defined even if it is in a separate file (a new editor window will open with that file if needed).