Eclipse IDE

Windows

Installation for windows: The installation process is explained in this YouTube video. The following summaries the video:

  1. Install (or update) Java from https://java.com/en/download/
    • Depending on the system one can install 32 bit of 64 bit  Java. For 64 bit Windows architect both can be used. The important thing is that same architect should be chosen for MinGW, Java, and Eclipse. Java by default installs 32 bit option even on 64 bit Windows. There is a offline 64-bit download and installation option but I had not luck with that. Also, the use of 32 bit Eclipse is also preferred to 64 bit as suggested by different people. So, whether 32 bit or 64 bit Windows architect use 32 bit MinGW, Java, and Eclipse.
  2. Install MinGW.
  3. Install and set up Eclipse:
    1. Download “Eclipse IDE for C/C++ Developers” from https://eclipse.org/downloads/. As discussed it is suggested to use 32-bit option even on a 64-bit Windows. If not, make sure MinGW and Java are also 64-bit designs.
    2. Unzip the downloaded file and put the Eclipse folder inside “Program Files” directory (“Program Files (x86) for 64-bit Windows and 32 bit eclipse).
    3. Right-click on eclipse.exe and Pin it to Start Menu.

Eclipse setup

  1. Open eclipse executable either directly or from Start Menu (Windows)
  2. Under Windows (or other system tab for Mac, Linux) use Options
    eclipse_Preferencesand make the following changes:

    • Change default file formats so that they can be opened and edited on all platformseclipse_Workspace
    • Choose the default compiler for your system.
      • (Windows) Important: If MinGW is not installed correctly of the bin directory is not added to the root (may require a restart) MinGW does not show up as one of the compilers. You need to fix that problem first.
      • After choosing the compiler make it the preferred option by “Make toolchain(s) preferred”.eclipse_NewCProjectMinGW
      • For better editing and code writing experience make the following changes and at the end select OK on the lower right corner.
        • If MinGW GCC does not show up, Eclipse is not properly linked to MinGW. Refer to steps 3-5 for the installation of MinGW on link to resolve the issue. This problem is more thoroughly discussed here.

eclipse_general_textEditors

 

eclipse_editor_text_editors

eclipse_C_editor_folding