3

I am on Windows 7 32 bit using Eclipse Juno. I have installed the CDT plugin. I have also installed Cygwin and the necessary files from packages like gdb, gcc, gawk, make etc.

I still get a Binary Not Found error. I had a look at this question Launch Failed Binary not found Eclipse for C in Windows tried everything but there seems to be no solution for it.

What is going wrong ?

Community
  • 1
  • 1
An SO User
  • 24,612
  • 35
  • 133
  • 221

5 Answers5

1

There can be multiple reasons for this :

First : Select Preference (click on Eclipse in MAC machine left top OR Windows from menu in Windows OS to find preferences) --> C/C++ --> New c/c++project wizard--> change to MACOS GCC (for mac) or Cygwin GCC (for windows)

Second : I had the similar issue but code was different. In File.h file make sure

virtual ~Destructor () {}; //Don't forget Curly braces {}

Above statement shows destructor initialized () and defined with curly braces { } . In my code I forgot to define Destructor. Hope this helps

Sdembla
  • 1,629
  • 13
  • 13
0

Go to Window -> Preferences -> C/C++ -> New C/C++ Project Wizard -> Makefile Project.

Choose one the following parsers and try with a new project.

  1. PE Windows parser
  2. Cygwin PE parser
AdityaTS
  • 89
  • 11
0

I was also receiving "Launch failed. Binary not found." My problem was AVAST Anti-virus. My Hello World C program would compile in eclipse CDT using the Windows PE Parser and mingw gcc compiler, but there was NO EXE FILE!!!! AVAST Antivirus was identifying the exe file as a false positive and removing it....grrrrr. The solution was to add the eclipse workspace folder to the exclusions list. Voila!! Eclipse generated my test.exe file.

Brian
  • 21
  • 2
0

Run eclipse from a cygwin shell :

pathToEclipse/eclipse.exe

Choose compilator cygwin Gcc when you build a new project.

Build and Run work now.

Maaehj
  • 161
  • 6
0

Simply go to the project(main manu)-> Build all This will solve your problem.

vishakha
  • 1
  • 1