Accepted answer

you must build an executable file before you can run it. so if you don't “build” your file, then it will not be able to link and load that object file, and hence it does not have the required binary numbers to execute.

so basically right click on the project -> build project -> run as local c/c++ application should do the trick


make sure you have gdb installed on your system...

if your using linux based os simply in a terminal type:

sudo apt-get install gdt 

when finished downloading extract the file and install.

close your ide (in this case eclipse and open it again and run your project.


adding the compiler to the path fixed the problem for me...

export path="$home/opt/cross/bin:$path"


my problem was the same as one commenter above. i had to change the binary parser to the correct one (pe for windows, elf for linux, mach for mac)


i faced the same problem while installing eclipse for c/c++ applications .i downloaded mingw gcc ,put its bin folder in your path ,used it in toolchains while making new c++ project in eclipse and build which solved my problem. referred to this video


seems like having "build automatically" under the project menu ought to take care of all of this. it does for java.


i was having this same problem and found the solution in the anwser to another question:

basically, installing cdt does not install a compiler, and eclipse's error messages are not explicit about this.


i faced the same problem. i have eclipse indigo and eclipse luna on ubuntu. i tried many solutions, but none worked. here's how you can try :) try it in order :)

  1. either do build all and then compile :)
  2. install g++ compiler
  3. windows->preferences->new cdt project-> makefile-> binary parsers-> choose cywin or window pe depending on your os :)
  4. change your toolchain to cywin gcc
  5. project->properties->environment-> release active

after 1,2, 3, and 4, i tried changing paths, and other stuff, but nothing worked. in the end, i noticed that it mentioned debug active was not configured. so when i changed it to release active, it worked. do note that change in environment and path is not required.


you must "build" before "run", otherwise "binary not found". you can set up "auto build", so that it will build and run. check this post to set up "auto build"


i had this problem for a long while and i couldn't figure out the answer. i had added all the paths, built everything and pretty much followed what everyone on here had suggested, but no luck.

finally i read the comments and saw that there were some compilation errors that were aborting the procedure before the binaries and exe file was generated.

bottom line: do a code review and make sure that there are no errors in your code because sometimes eclipse will not always catch everything.

if you can run a basic hello world but not your code then obviously something is wrong with your code. i learned the hard way.


if you still have an error even after building the project then try to do this:

  • click on binaries in project explorer with the left button
  • click on green "play" button (run debug)


go to the run->run configuration-> now

under c/c++ application you will see the name of your executable + debug (if not, click over c/c++ application a couple of times). select the name (in this case projecttitle+debug).

under this in main tab -> c/c++ application -> search your project -> in binaries select your binary titled by your project....


first you need to make sure that the project has been built. you can build a project with the hammer icon in the toolbar. you can choose to build either a debug or release version. if you cannot build the project then the problem is that you either don't have a compiler installed or that the ide does not find the compiler.

to see if you have a compiler installed in a mac you can run the following command from the command line:

g++ --version

if you have it already installed (it gets installed when you install the xcode tools) you can see its location running:

which g++

if you were able to build the project but you still get the "binary not found" message then the issue might be that a default launch configuration is not being created for the project. in that case do this:

right click project > run as > run configurations... > 

then create a new configuration under the "c/c++ application" section > enter the full path to the executable file (the file that was created in the build step and that will exist in either the debug or release folder). your launch configuration should look like this:

enter image description here

Related Query

More Query from same tag