Setup Eclipse For C++

Posted on  by admin

We will follow the below steps to install and set-up free Eclipse for C programming. In order to download the free version of Eclipse for C programming, visit and follow the below steps. Locate the installer option with the name “Eclipse IDE for C/C Developers” and click on the link provided at extreme right depending on the type of OS. If you have Eclipse IDE variant other than Eclipse IDE for C/C Developers and want to do C/C development, you will have to install CDT add-on. CDT add-on consists of multiple Eclipse plugins, the recommended minimum is listed below (It will take approximately 58 MiB of disk space).

  1. C C++ Eclipse Download
  2. C++ For Eclipse
  3. How To Setup Eclipse For C++

How to Install Cygwin

Cygwin (pronounced as SIG-win) = GNU + Cygnus + Windows. The mother site for Cygwin is

  • ★★★Top Online Courses From ProgrammingKnowledge ★★★Python Programming Course ️ ⚫️ Programming Course.
  • Method 2: Setup Eclipse for C programming in Ubuntu Linux. That was the basic way of running a C program in Linux. But if you are working on a C project, building and running individual files would be a nightmare.

According to the developers, 'Cygwin is a Open-source Linux-like environment for Windows. It consists of two parts:

  • A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
  • A collection of tools which provide Linux look and feel.'

To install Cygwin:

Step 1: Download Setup
Goto Cygwin mother site @ ⇒ Click 'Install Cygwin' ⇒ Download the setup program 'setup-x86_64.exe' (64-bit Windows) or 'setup-x86.exe' (32-bit Windows).
Step 2: Run Setup to Select, Download & Install Cygwin Packages
Run 'setup-x86_64.exe' ⇒ Install from Internet ⇒ select a directory (avoid installing in 'Program Files' because of that 'blank' character) ⇒ choose 'Local Package Directory' which saves the downloaded installation files ⇒ Direct Connection ⇒ choose a download mirror site.

Select the packages that you wish to install.

Important: For programmers, you certainly need to open the 'Devel' (Development) category and select 'gcc', 'g++', 'gdb', 'make', and others, which are not part of the default selection.

Browse thru all the categories. Complete the installation process. You can always re-run 'setup' to install additional packages later.

Step 3: Setup PATH
Include the Cygwin Binary directory (Eclipse cdt downloadbin) in the PATH environment variable.

Suppose that your Cygwin is installed in directory 'c:cygwin'. From 'Control Panel' ⇒ (Optional) System and Security ⇒ System ⇒ Advanced System Settings ⇒ 'Advanced' tab ⇒ Environment Variables ⇒ System Variables ⇒ Select variable named 'PATH' ⇒ Edit ⇒ Add 'c:cygwinbin;' in front of the existing PATH entry. Note that the semi-colon serves as the directory separator to separate Cygwin from the rest of directory paths.

Step 4: Verify Cygwin
Setup Eclipse For C++ Start the Cygwin Command shell (bash or sh) by running 'cygwin.bat'. You shall see the command prompt '$'. You may need to create the users' group and password files by running the following commands:Setup Eclipse For C++

Try out some Unix commands (you need to read a Unix book - there is no short-cut in learning), e.g.,

Need help? Try:

On bash shell, after setting the directory to the the 'root' (via 'cd /'), you could find a directory called 'cygdrive' (via 'ls' or 'dir'), where all the hard disks are mounted. 'cd cygdrive' and 'ls' lists all the hard disks, e.g., 'c', 'd', etc.

You may mount your C drive ('c:') as '/c' instead of the default '/cygdrive/c' via this command:

You could invoke the Cygwin programs and utilities via the Windows' Command Prompt ('cmd.exe') instead of bash shell (provided the PATH is set properly), e.g.,

How to install MinGW

[To Check] Is MinGW obsoleted by MinGW-W64, which supports both 32-bit and 64-bit Windows?

MinGW (short for 'Minimalist GNU for Windows'), is a minimalist (i.e., small but fewer features compared with cygwin) development environment for native Microsoft Windows applications, in particular:

  1. A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers;
  2. GNU Binutils for Windows (assembler, linker, archive manager).
  3. MSYS (short for 'Minimal SYStem'), is a bash Shell command line interpreter.

To install MinGW:

  1. Goto MinGW mother site at ⇒ Downloads ⇒ Installer ⇒ click on 'mingw-get-inst' link to download the installer.
  2. Run the downloaded installer.
    1. Set the installation directory. (Try to use a directory name without spaces, e.g., 'd:myprojectmingw'. Try not to install under 'Program Files' or 'Desktop'.)
    2. In MinGW Installation Manager, select 'Installation' ⇒ 'Update Catalogue' ⇒ Select all packages in 'Basic Setup' ⇒ continue.
  3. Setup environment variable PATH to include '<MINGW_HOME>/bin' where <MINGW_HOME> is the MinGW installed directory that you have chosen in the previous step.
  4. Verify the GCC installation by listing the version of gcc,g++ and gdb:

How to install MinGW-w64

MinGW-w64 is a fork of MinGW to support 64-bit Windows (as well as the 32-bit windows). The mother site is

You can install MinGW-W64 under 'Cygwin' by selecting these packages (under 'Devel' category):

  • mingw64-x86_64-gcc-core: 64-bit C compiler for native 64-bit Windows. The executable is 'x86_64-w64-mingw32-gcc'.
  • mingw64-x86_64-gcc-g++: 64-bit C++ compiler for native 64-bit Windows. The executable is 'x86_64-w64-mingw32-g++'.
  • mingw64-i686-gcc-core: 64-bit C compiler for native 32-bit Windows. The executable is 'i686-w64-mingw32-gcc'.
  • mingw64-i686-gcc-g++: 64-bit C++ compiler for native 32-bit Windows. The executable is 'i686-w64-mingw32-g++'.

To check the versions:

You can also install MinGW-W64 stand-alone by downloading and run the installer.

Writing C/C++ Programs using GCC in Cygwin or MinGW (under Windows)

Setup Eclipse For C++

C C++ Eclipse Download

Read 'GCC and Make'.

C++ For Eclipse


How To Setup Eclipse For C++

  1. Cygwin Mother Site @
  2. MinGW mother site @