Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Run Tests failing("Launch failed. Binary not found.")
icon8.gif  Run Tests failing [message #1491406] Sat, 29 November 2014 00:40 Go to next message
Jason Kinetec is currently offline Jason KinetecFriend
Messages: 3
Registered: November 2014
Junior Member
I installed Eclipse thinking that it would be great and easy to use since I've been looking for a good C++ IDE.

After installing, I proceeded to create a test project to test things out. So I wrote this code in the project:

#include <iostream>
using namespace std;

void print(string x) {
	cout << x << endl;
}

int main(void) {
	cout << "Hello, world!" << endl;
	for (int i = 10; i > 0; i--) {
		cout << i << endl;
	}
	print("Hello!");
}


and then I hit the green Run Test button to test my program. However, I kept getting an error saying "Launch failed. Binary not found."

I'm completely new to Eclipse and I'm not sure if this is an error, or if I had to actually link binaries to my project. Could someone help me out?

P.S. I'm also a beginner-intermediate C++ programmer. Also, my operating system is OS X 10.10.1.
Re: Run Tests failing [message #1491966 is a reply to message #1491406] Sat, 29 November 2014 11:57 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 29-11-14 01:58, Jason Kinetec wrote:
> I installed Eclipse thinking that it would be great and easy to use
> since I've been looking for a good C++ IDE.
>
> After installing, I proceeded to create a test project to test things
> out. So I wrote this code in the project:
>
>
> #include <iostream>
> using namespace std;
>
> void print(string x) {
> cout << x << endl;
> }
>
> int main(void) {
> cout << "Hello, world!" << endl;
> for (int i = 10; i > 0; i--) {
> cout << i << endl;
> }
> print("Hello!");
> }
>
>
> and then I hit the green Run Test button to test my program. However, I
> kept getting an error saying "Launch failed. Binary not found."
>
> I'm completely new to Eclipse and I'm not sure if this is an error, or
> if I had to actually link binaries to my project. Could someone help me
> out?

Did you *build* the executable?


Cheers,

Joost
Re: Run Tests failing [message #1492129 is a reply to message #1491966] Sat, 29 November 2014 15:17 Go to previous messageGo to next message
Jason Kinetec is currently offline Jason KinetecFriend
Messages: 3
Registered: November 2014
Junior Member
Joost Kraaijeveld wrote on Sat, 29 November 2014 11:57


Did you *build* the executable?


I just tried that, but it didn't work. I still got the same error.
Re: Run Tests failing [message #1492568 is a reply to message #1492129] Sun, 30 November 2014 00:08 Go to previous messageGo to next message
Jason Kinetec is currently offline Jason KinetecFriend
Messages: 3
Registered: November 2014
Junior Member
Is there anyone who can help me? I mean, it's kinda ridiculous that my post has nearly 3,000 views yet I've received little help.
Re: Run Tests failing [message #1493123 is a reply to message #1492568] Sun, 30 November 2014 11:32 Go to previous message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 30-11-14 01:08, Jason Kinetec wrote:
> Is there anyone who can help me? I mean, it's kinda ridiculous that my
> post has nearly 3,000 views yet I've received little help.

What is the compiler output from the build console? And which binary
parser is enabled (Project->properties->C/C++->Settings->Binary Parsrs)?
And does the completely generated "Hello word" work?


Cheers,

Joost
Previous Topic:Question on how to setup a debug project for Open MPI source code
Next Topic:CDT Parser stand-alone - What is the best strategy for autocomplete ?!
Goto Forum:
  


Current Time: Thu Apr 25 17:25:57 GMT 2024

Powered by FUDForum. Page generated in 0.03081 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top