If you have compiled your code with 0 error and still getting the error;
“Eclipse CDT project built but Lunch failed. Binary not found”.
You can solve your error by simply applying the following steps;
- Click on the “Run” icon.
- After this choose “Run Configuration” from the dropdown of the run icon.
- Choose the option of “C++ Application”.
- Go to the top left corner of the opened window and choose “New Launch Configuration” from there.
- Choose the “Browse” option under the C/C++ Application.
- Browse the folder where you made your project initially.
- Go to the debug folder.
- There click on the binary file whose name is matching to the project name that you created initially.
- Select the Ok button.
- Click the “Apply” button to confirm the link settings that you have just set.
- Close that window
After that you can be able to run the project according to configuration.
To solve this error, select the proper binary parser so the Eclipse can recognize all executable;
- Select the project and click the right button.
- Go to project
- Click on the project properties tab.
- Go to C/C++ build.
- Then go to settings
- In settings, select Binary Parsers, PE Windows Parser.
I hope these solutions will help to solve your error.