You are on page 1of 1

Eclipse/Cygwin Setup:

6/7/2011

1. Download the Eclipse IDE for C/C++ Developers Windows version from the following website.
This is the Eclipse CDT (C++ Development Toolkit). If this version is downloaded, then no add-
ons are required to run C++ code after Eclipse is set up.
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliossr2

2. Download Cygwin and install from the following website.


http://cygwin.com/install.html

3. The following packages are required for the installation of Cygwin, the other packages are
optional. We can run setup.exe any time we want to install or update a package. By default, only
minimal base packages are installed. The following packages are necessary to integrate Eclipse
with the Cygwin toolchain to compile, link and debug the C++ code. You can check your cygwin
installation using the 'cygcheck -c' command.

a) binutils
b) gcc
c) gcc-core
d) gcc-g++
e) gcc-mingw-core
f) gcc-mingw-g++
g) make
h) gdb (needed to support debug in eclipse)

4. Add %cygwin%\bin to the env PATH, then open Eclipse. The Cygwin tool chain will be shown
when a new c/cpp project wizard is opened.

5. To configure GDB, go to windows -> C/C++ -> Debug -> Common Source Lookup. Add the
following path mapping.
\cygdrive\c -> c:\
Do the same for other drives if any.

6. Check the correct installation by running a Hello World program. This procedure is explained in
the ‘help’ section of the Eclipse CDT.

You might also like