Eclipse CDT project built but "Launch Failed. Binary Not Found"
This happened to me and I found a solution, see if this works for you:
Once you have built your project with the hammer icon:
- select "Run".
- Run Configurations.
- Choose "C++ Application".
- Click on the "New Launch Configuration" icon on the top left of the open window.
- Select "Browse" under the C/C++ Application.
- Browse to the folder where you made your project initially.
- Enter the Debug folder.
- Click on the binary file with the same name as the project.
- Select "OK".
- Click "Apply" to confirm the link you just set.
- Close that window.
Afterwards you should be able to run the project as much as you'd like.
Hopefully this works for you.
I think I found solution - proper binary parser must be selected so Eclipse can recognize the executable:
Select the project, then right-click. Project->Properties->C/C++ Build->Settings->Binary Parsers, PE Windows Parser.
I.e. if Cygwin compiler is used then Cygwin parser should be used.
That worked for me at least for Cross-compiler (both on Windows 7 and Ubuntu 12.04). On Linux, I use Elf parser.
If anyone has the better solution, please advise.
Simply select the project and press CTRL + B.