Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indigo
Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indigo [message #783109] Wed, 25 January 2012 04:31 Go to next message
John Richter is currently offline John Richter
Messages: 3
Registered: January 2012
Junior Member
Here is a screenshot of the problem: imgur.com/e2h2Z (i'm not allowed to post links as a new member)

Hi, I've seen a few threads on this very topic, but either the suggestions didn't work for me or they were too vague for me to understand.

I downloaded the C++ developer tools through eclipse and installed, and I'm trying to run the Hello World program that it comes with. I get the above error when I try to run. I have tried adding the -arch i386 flag to the linker and compiler to no avail. Finally, I made sure the mach-o 64 parser was checked.

I'm really stumped. I can run the program perfectly fine through command line with g++ as well as xcode. There is no output to the console at all when I try to run it.

Thanks.

[Updated on: Wed, 25 January 2012 04:35]

Report message to a moderator

Re: Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indig [message #785221 is a reply to message #783109] Sat, 28 January 2012 17:30 Go to previous messageGo to next message
Klaus Mr is currently offline Klaus Mr
Messages: 117
Registered: November 2011
Senior Member
Have you selected the correct binary parser?
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_proj_parser.htm

As far as I know Mac needs Mach-O Parser...

Regards,
Klaus


Re: Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indig [message #785226 is a reply to message #785221] Sat, 28 January 2012 17:42 Go to previous messageGo to next message
John Richter is currently offline John Richter
Messages: 3
Registered: January 2012
Junior Member
Yup, using the mach-o 64 parser.
Re: Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indig [message #785248 is a reply to message #785226] Sat, 28 January 2012 18:24 Go to previous messageGo to next message
Klaus Mr is currently offline Klaus Mr
Messages: 117
Registered: November 2011
Senior Member
Did you build test.cpp within Eclipse? On the screen shot I miss some generated folders:

Press CTRL+B (or however this key is called on a Mac). After a successfully build you should see a folder "Debug" or "Release" in the Project Explorer view and a virtual Folder Binaries. Now right click on one of the binaries and select Run as > Local C/C++ Application.

Regards,
Klaus


Re: Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indig [message #785253 is a reply to message #785248] Sat, 28 January 2012 18:34 Go to previous messageGo to next message
John Richter is currently offline John Richter
Messages: 3
Registered: January 2012
Junior Member
Wow. That was it. Embarrassed

I assumed that the "play" button both built AND run. In Xcode it does both.

THANKS!!!!

Laughing

Re: Newbie Help: "Launch failed. Binary not found." for c++ on Mac OS X 10.7 Eclipse Indig [message #993738 is a reply to message #785248] Tue, 25 December 2012 09:46 Go to previous message
Nwe Nwe Htay Win is currently offline Nwe Nwe Htay Win
Messages: 1
Registered: December 2012
Junior Member
Hello, I use Eclipse Juno on Ubuntu 12.10. I also found error in "Launch Failed, Binary not found",although I run the C and C++ file with run as local C/C++ Application. How to fix the problem. I'm fledling for all Ubuntu, and C. So, hope any help and will be appreciated for it.
Previous Topic:Strange Eclipse (on Mac) Compilation Errors
Next Topic:Disabling autoformat
Goto Forum:
  


Current Time: Fri Oct 31 06:37:40 GMT 2014

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

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