Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Ganymede and MinGW in Windows

I'm trying to get eclipse to work with MinGW. I've done the following:

  • Downloaded CDT for eclipse.
  • Installed MinGW.
  • Added C:\MinGW\bin to my path.
    Opening a command prompt (CMD) and typing g++ or alike works fine.
  • I run eclipse, create a "New C++ Project", and only get the option saying "other toolchains".

There's a MILLION tutorials out there saying eclipse should identify MinGW on its own. It doesn't, and I don't know what to do. I've tried reinstalling everying in just about every order posible. Still no luck.

I've also noted some tutorials say something about creating a "Managed C++ Project". I've no such option, all I get is "C++ Project" and "C Project"

edit: I have eclipse ganymede, windows x86_64, version 3.4.2
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php

Running the "Eclipse IDE for C/C++ developers" fails, since there's no x64 version for windows. The x86 version requires x86 JAVA installed as well, and installing two versions of java, gave nothing but trouble in the past.

like image 750
WhyNotHugo Avatar asked Dec 08 '25 12:12

WhyNotHugo


1 Answers

The instructions for setting up MinGW in Ganymede are located here.

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.

Following this process resolved any problems I had.

like image 157
McDowell Avatar answered Dec 10 '25 02:12

McDowell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!