Skip to content
Search

Eclipse:CDT

lastmod 2019-01-25created 2019-01-252 edits

Eclipse CDT (C/C++ Development Tooling)

The CDT Project provides a fully functional C and C++ Integrated Development Environment based on the Eclipse platform. Features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewers.

Plugin installation

After installing Eclipse, the CDT plugin can be installed with the steps below. <span style='color:red;'>(The method below is obsolete)

  1. Menu > Help > Install New Software...
  2. Select Work with > Indigo - http://download.eclipse.org/releases/indigo
  3. Select Programming Language > C/C++ Development Tools
  4. Select Programming Language > C/C++ Development Tools SDK
  5. Select Programming Language > C/C++ Library API Documentation Hover Help (Incubation)

The latest CDT can be installed as follows.

  1. Go to the CDT homepage and copy the CDT repository URL for your Eclipse version.
  2. Menu > Help > Install New Software...
  3. Apply the copied CDT repo URL and update.

For reference, Kepler can be set up as follows. (Updated 2013-08-15)

Setting up a MinGW MakeFile project

In MinGW, make.exe is named mingw32-make.exe. For a Makefile project, change the Builder setting as follows.

  1. Menu > Window > Preferences > C/C++ > New CDT Project Wizard > Makefile project > Builder setting
  2. Uncheck Use default build command.
  3. Change make in Build command to mingw32-make.exe. (You can also change it in the form ${~MINGW_ROOT}/bin/mingw32-make.exe.)

CDT C++11 Setting

Describes how to apply C++11 in CDT. In Eclipse CDT 4.4 Luna, set the syntax parser as follows.

Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build-in Compiler Settings

In the Language Settings Provider Options group at the bottom, add -std=c++11 to the Command to get compiler specs EditBox.

See also

Favorite site

References


  1. Cdt_mingw_setting.pdf ↩

author Zer0 sitemap