Build up C/C++ environment on eclipse using CDT + cygwin

More and more people want to use open source IDE instead of Visual Studio to writing C/C++ because it’s clean and free. Here, we introduce eclipse to writing C/C++ program. Eclipse is an excellent IDE for Java programming. Due to its open source platform, we may use it for C/C++ programming as well. CDT(C/C++ Development Tool) is a plugin that allows eclipse to support C/C++. Cygwin is a Linux-like environment for Windows and it allows you to use gcc/g++ compiler. There’re just several steps to build up your own eclipse. Now, let’s go.

Step 1:
Download Cygwin setup here: http://www.cygwin.com/setup.exe
Install it according to the following guide:

01

02

Recommend to choose a short path and a simple name of the root directory
03

Choose a location to download the installation file(not necessary be a subfolder of root directory)
04

05

Choose a mirror site you like. You may view the mirror site list here: http://cygwin.com/mirrors.html
06

Expand Devel and select these components (by clicking skip label):
gcc-core: C compiler
gcc-g++: C++ compiler
gdb: The GNU Debugger
make: The GNU version of the make utility
07
Note: When you choose these components, Cygwin will automatically choose some other dependence for you. Just keep them.

Then it will download these packages and install them. When it completes, click Finish.

Step 2:
Add bin folder in the root directory of Cygwin to the environment variables named path. Either user variable or system variable is fine. In the above example, you should use E:\cygwin\bin.

Step 3:
If you download Eclipse IDE for C/C++ Developers, you may skip Step 3 and directly use it.
Download CDT here: http://www.eclipse.org/cdt/downloads.php
Make sure you select the suitable version for your eclipse.
Installing CDT may differ from its version. Here we use eclipse 3.4.2+CDT 5.0.2.
Unzip CDT zip file into a folder and fire up eclipse.
Click Help>Software Updates and choose Available Software.
Click Add site>Local and select the location of the CDT folder.
08

You will see the CDT is added to the Available Software list. Choose it and click Install.
09

Wait until it completes installation and enjoy it after restarting eclipse.

Share
This entry was posted in Programming Technology. Bookmark the permalink.

67 Responses to Build up C/C++ environment on eclipse using CDT + cygwin

  1. Hello.This post was extremely fascinating, particularly because I
    was searching for thoughts on this matter last Sunday.

  2. Some really interesting details you have written.Assisted me a lot,
    just what I was looking for :D.

  3. Ashley says:

    Thank you. A lot of facts!

  4. Angeboten wird unter anderem: Sex mit Spielzeug Bi-Sex Heißen Strip Sexspielchen und noch sehr vieles mehr.

  5. Some genuinely interesting details you have
    written.Assisted me a lot, just what I was looking for :D.

  6. but wiper says:

    These wipes are excellent at removing the trapped- been on there for a while or in yuck, whether it is not
    stale.

  7. jav dvd says:

    I am not sure where you’re getting your information, however good topic.
    I must spend some time finding out more or figuring out more.

    Thanks for magnificent info I was searching for this info for my mission.

Leave a Reply

Your email address will not be published. Required fields are marked *