Reputation:
i have Visual C++ installed on my system. I downloaded eclipse-cpp-indigo-SR1-incubation-win32. I followed the following steps to create a new C++ project:
File-->> New -->> C++ Project-->> Gave it a (name) -->> Hello World C++ Project-->> Finish
Then I entered this example program:
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
This code was pre-written.
I clicked the green (run) button, but this gave me the error message: "launch failed: binary not found".
As mentioned in comments, I clicked hammer (build) button, and this gave the error message : "a program file was not specified in the build configuration"
Can anybody troubleshoot this?
Upvotes: 2
Views: 3770
Reputation: 2226
My friend had a very, very similar problem. I fixed it by reinstalling Visual C++ but it could be fixed by just reinstalling eclipse. What version of Windows are you using?
Upvotes: 0
Reputation: 191
I just download the eclipse and follow you step by step. I press the "hammer" and then "green run". It works. Give it another try.:)
Upvotes: 0
Reputation: 12181
Control (Command for macs) + b, Control (Command) + r
Or just Control (Command) + Shift + r
With c++ you have to build it (control + b) so it compiles to something the computer can run, before you run it.
Upvotes: 0
Reputation: 9476
Just select the source file, and press "hammer" (build) icon first. And then the green one.
Upvotes: 4