How to install C++ plugin to Eclipse?

Firstly, in the following examples all drive-letters should be replaced with the relevant ones on your system. Not all of these steps are really necessary, but it works (and the more the merrier).

We start with the slightly simpler release config – we want to make it compile.

Go to Project — Properties

Look if the include directories are correct and in place.

enter image description here

Go to Project — Properties — Run/Debug Settings — NEW — Main Tab

Set to Release and Browse to the Release folder of the project. If the exe file is not set type in its name.

Properties 1

Switch to Common Tab. Check Allocate Console and Launch in Background. Don’t Run yet.

Properties 2

Go to Project — Properties — C/C++ Build — Discovery Options

Tools — GCC C++ Compiler

“Browse” to the mingw bin folder and select the g++.exe or copy mingw32-g++.exe to g++.exe

Note: The image points to mingw32-g++.exe please use g++.exe

Property 3

Right click on the project and look — Build Configurations — Set Active — Release is checked.

Right click on the project — Run As — Run Configurations.

Under C/C++ Application select, the one which refers to the release version. Then click Run

If this works, I will show you how to set the Debug Properties. (more complicated)

Leave a Comment