Anston Sorensen
Anston Sorensen

Reputation: 516

Eclipse Can't Find MinGW/Can't setup C++ on Eclipse

I am trying to setup c++ in Eclipse IDE. I have installed the C++ Development Tools and C++ Development Tools SDK. I have read "Before you begin" in "C/C++ Development Guide". I have installed MinGW on the page it provides. It installes it to C:\MinGW which Eclipse said it could recognize. I create a new makefile C++ project with MinGW selected as my tool chain. I had to uncheck "Show toolchains only if they are supported on the platform". It doesn't work. I have spent hours on trying to make this work.

Upvotes: 2

Views: 738

Answers (1)

Brecht Sanders
Brecht Sanders

Reputation: 7287

You need to tell Eclipse where to gcc.exe and g++.exe. In your case I would expect that to be C:\MinGw\mingw32\bin or C:\MinGw\bin.

If there's no gcc.exe and g++.exe there, it would appear your MinGW setup is broken.

Note that plain MinGW is a not very well maintained or up to date. I would recommend switching to MinGW-w64, which exists for both Windows 32-bit and 64-bit. A standalone build for Windows of recent MinGW-w64 can be downloaded from https://winlibs.com/. Just extract the file (no installer needed) and point to the mingw32\bin or mingw64\bin folder to find the compiler toolchain.

Upvotes: 1

Related Questions