C/C++ Development Tools (CDT)

The C/C++ Development Tools (CDT) is Eclipse's main C/C++ Development IDE.

Installation

3.6 Helios and above

Simply use the Eclipse Updatemanager to install the Plugin.

Installation URL (data as per 2010-10-19):

If you get a “Duplicate location” error when adding the Installation URL, it is simply already existing (which should be the case by default). Skip adding the URL and go on.

Choose the added Installation URL and check the “C/C++ Development Tools” package out of the “Programming Languages” tree.

Post-installation

Linux

All needed build and compilation tools are available – for all flavors of Linux. If you are running Ubuntu/Debian, simply install the following package(s):

MS Windows

On Windows, you can use Cygwin or MinGW (recommended) to provide the GNU toolchain. Quote from the documentation (data as per 2009-10-20):

MinGW is a port of the GNU toolchain to the Windows platform. The
biggest difference over Cygwin is that MinGW uses the Windows C
runtime libraries (mscvrt) instead of GNU's libc. As a result, a
compatibility layer is not required, thus avoiding the GPL issues
with Cygwin. There are differences, though, between the Windows and
GNU C runtime libraries that will make writing portable applications
more difficult.

However, MinGW provides the best integration support with the CDT due
to it's direct support for the Windows environment.

The following are instructions and links on how to install the
current version of MinGW. Note that these links may become inaccurate
over time as new versions of MinGW components are introduced. Please
check the MinGW File Release section for the latest versions.

1. Download and run the MinGW setup program, MinGW-5.1.3.exe.
2. Select download and install the MinGW base tools and the g++
compiler. You may select the Current or Candidate version of these
tools. You may also install any of the other available compilers as
well.
Do *not* install the MinGW Make feature as the MSYS version of make
from step 5 is a more complete implementation of make.
3. The MinGW setup program currently does not install the gdb debugger.
To install the debugger, download the file from the following location:
gdb-6.6.tar.bz2
4. Extract the contents of the file gdb-6.6.tar.bz2
to the same location where you installed MinGW.
5. If you want to use Makefile projects, download and run the setup
program from the following location: MSYS-1.0.10.exe.
MSYS provides an implementation of make and related command line tools.
This is not required for other types of projects with the MinGW toolchain,
which use CDT's internal build tools to perform the build.

3.5 Galileo

Simply use the Eclipse Updatemanager to install the Plugin.

Installation URL (data as per 2010-08-16):

If the URL is already existing (“Duplicate Location”), check if it is enabled (“Window→Preferences→Install/Update→Available Software Sites”).

Choose the added Installation URL and check the needed packages. The “Eclipse C/C++ Development Tools SDK” is only needed if you want to develop something for the CDT-Plugin itself.

Post-installation

Linux

All needed build and compilation tools are available – for all flavors of Linux. If you are running Ubuntu/Debian, simply install the following package(s):

MS Windows

On Windows, you can use Cygwin or MinGW (recommended) to provide the GNU toolchain. Quote from the documentation (data as per 2009-10-20):

MinGW is a port of the GNU toolchain to the Windows platform. The
biggest difference over Cygwin is that MinGW uses the Windows C
runtime libraries (mscvrt) instead of GNU's libc. As a result, a
compatibility layer is not required, thus avoiding the GPL issues
with Cygwin. There are differences, though, between the Windows and
GNU C runtime libraries that will make writing portable applications
more difficult.

However, MinGW provides the best integration support with the CDT due
to it's direct support for the Windows environment.

The following are instructions and links on how to install the
current version of MinGW. Note that these links may become inaccurate
over time as new versions of MinGW components are introduced. Please
check the MinGW File Release section for the latest versions.

1. Download and run the MinGW setup program, MinGW-5.1.3.exe.
2. Select download and install the MinGW base tools and the g++
compiler. You may select the Current or Candidate version of these
tools. You may also install any of the other available compilers as
well.
Do *not* install the MinGW Make feature as the MSYS version of make
from step 5 is a more complete implementation of make.
3. The MinGW setup program currently does not install the gdb debugger.
To install the debugger, download the file from the following location:
gdb-6.6.tar.bz2
4. Extract the contents of the file gdb-6.6.tar.bz2
to the same location where you installed MinGW.
5. If you want to use Makefile projects, download and run the setup
program from the following location: MSYS-1.0.10.exe.
MSYS provides an implementation of make and related command line tools.
This is not required for other types of projects with the MinGW toolchain,
which use CDT's internal build tools to perform the build.
Print/export
QR Code
QR Code app:eclipse:plugin:cdt (generated for current page)
Languages
Translations of this page: