Reputation: 23
I downloaded the latest version of Eclipse for C/C++ yesterday and when I tried to run a program I got the following error:
Launch failed. Binary not found.
I searched all over Google and tried the solutions posted, but still get the message. I've installed the JRE, I built the program before running, I set the binary parser to PE Windows, but I'm still getting the error.
All I have in the program is:
int main ()
{
return 0;
}
(I am barely starting to learn how to program and am reading C++ Primer 5th Edition which is where I got the lines above from)
Upvotes: 0
Views: 136
Reputation: 11
Well, to solve this standoff I realized the following:
1 - When you're creating a C + + project wizard now create an EXE with the name its first class (usually the name given to the project);
2 - Right click on the project RunAs-> Run Configurations;
3 - C / C + + Application New, Right Button;
4 - In C / C + + Application Click Browse, navigate to the folder of your project and select your EXE file and click Apply and Close;
5 - You can now click the Run.
Hope this helps, bye.
Upvotes: 1