Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Launch failed. Binary not found." error on CDT Kepler Eclipse

Running or debugging anything gives me an extremely frustrating "Launch failed. Binary not found" error. I'm using Eclipse with a CDT plugin installed (specifically, I have the MinGW package installed).

I already tried setting both the user and system PATH variables to include my (MinGW directory)/bin

I also tried building the program before running it.

I also made sure that PE Windows Parser under the project's settings was enabled.

I went to Project Properties > Run/Debug Settings > New > C/C++ Application > Environment > Select > and I selected the Path

I also tried setting the C/C++ Application in the Main tab to the executable file that is made from building the program, but no such file is made when I do build my program. I seriously doubt that this is what's causing the problem, though.

I'm running out of options, and the problem still persists. What else needs to be done? What am I doing wrong?

When I was looking through the install instructions for MinGW, the tutorial referenced the mingw base package as the package to install after installing MinGW. But mingw base was not available to me. Instead, I saw mingw32 base. Could it be that Eclipse, a 64 bit program, is trying to run 32 bit code? Is that what's going on? If that's the problem, how do I fix it?

like image 928
Manuel Avatar asked Mar 16 '14 01:03

Manuel


People also ask

How to create Binaries in Eclipse c++?

You have to use Ctrl+B to build the project. It automatically creates the binaries for you.

What is CDT for Eclipse?

The C/C++ Development Toolkit (CDT) is a set of Eclipse plug-ins that provide C and C++ extensions to the Eclipse workbench. For more information about Eclipse, see Workbench User Guide > Concepts > Workbench. The CDT provides a C/C++ IDE that simplifies many of the same tools that you can use from the command line.


1 Answers

  1. Build
  2. Refresh the project. A new folder named Binaries will appear now in project explorer.
  3. Now Run :)
like image 117
singingsingh Avatar answered Nov 15 '22 07:11

singingsingh