Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse C++ on Mac OS X 10.5
Eclipse C++ on Mac OS X 10.5 [message #249544] Wed, 20 February 2008 12:12 Go to next message
Eclipse UserFriend
Originally posted by: mathbeard.gmail.com

Hello,

I'm having trouble launching anything in eclipse. I get the "Launch
failed no binaries" error, but I don't know what that means. I have used
the eclipse Java before, but not the c++ version. I'm new to c++ and I'm
not sure that that error means.

Thanks
Re: Eclipse C++ on Mac OS X 10.5 [message #249559 is a reply to message #249544] Wed, 20 February 2008 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Moving over to the CDT newsgroup where you are much more likely to get an
answer.

HTH
Darins
http://runnerwhocodes.blogspot.com

"Gareth Markwardt" <mathbeard@gmail.com> wrote in message
news:7ea94433f86cb5a276e23640a3b93b92$1@www.eclipse.org...
> Hello,
>
> I'm having trouble launching anything in eclipse. I get the "Launch
> failed no binaries" error, but I don't know what that means. I have used
> the eclipse Java before, but not the c++ version. I'm new to c++ and I'm
> not sure that that error means.
>
> Thanks
>
Re: CDT issues [was: Eclipse C++ on Mac OS X 10.5] [message #249564 is a reply to message #249559] Wed, 20 February 2008 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:fpi1d0$g47$1@build.eclipse.org...
> Moving over to the CDT newsgroup where you are much more likely to get an
> answer.

We seem to be getting quite a few C-related questions on eclipse.newcomer,
which is probably a good thing. It seems most simple Java-related questions
get quickly answered on eclipse.newcomer, but at least half the C-related
questions get pushed over to eclipse.tools.cdt before being answered.

I wonder whether that's for the best, or if it's just a reflection of
Eclipse's Java-centric history? Perhaps the right answer is to encourage
more CDT experts to hang out on eclipse.newcomer. (Or perhaps they already
do, and we just don't wait long enough for answers? Though my gut sense is
that's not so.)

Just my two cents.
-walter
Re: CDT issues [was: Eclipse C++ on Mac OS X 10.5] [message #249569 is a reply to message #249564] Wed, 20 February 2008 17:15 Go to previous messageGo to next message
Eclipse UserFriend
"Walter Harley" <wharley@bea.com> wrote in message
news:fpi2k4$pd7$1@build.eclipse.org...
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:fpi1d0$g47$1@build.eclipse.org...
>> Moving over to the CDT newsgroup where you are much more likely to get an
>> answer.
>
> We seem to be getting quite a few C-related questions on eclipse.newcomer,
> which is probably a good thing. It seems most simple Java-related
> questions get quickly answered on eclipse.newcomer, but at least half the
> C-related questions get pushed over to eclipse.tools.cdt before being
> answered.
>
> I wonder whether that's for the best, or if it's just a reflection of
> Eclipse's Java-centric history? Perhaps the right answer is to encourage
> more CDT experts to hang out on eclipse.newcomer. (Or perhaps they
> already do, and we just don't wait long enough for answers? Though my gut
> sense is that's not so.)
>
> Just my two cents.
> -walter
>

Walter,

I think it would be great if more CDT experts hung out on eclipse.newcomer.
I will wait longer to see if answers show up...but that has not been my
experience in the past.

Darins
http://runnerwhocodes.blogspot.com
Re: CDT issues [was: Eclipse C++ on Mac OS X 10.5] [message #249574 is a reply to message #249564] Wed, 20 February 2008 17:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Walter Harley wrote:
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:fpi1d0$g47$1@build.eclipse.org...
>> Moving over to the CDT newsgroup where you are much more likely to get an
>> answer.
>
> We seem to be getting quite a few C-related questions on eclipse.newcomer,
> which is probably a good thing. It seems most simple Java-related questions
> get quickly answered on eclipse.newcomer, but at least half the C-related
> questions get pushed over to eclipse.tools.cdt before being answered.
>
> I wonder whether that's for the best, or if it's just a reflection of
> Eclipse's Java-centric history? Perhaps the right answer is to encourage
> more CDT experts to hang out on eclipse.newcomer. (Or perhaps they already
> do, and we just don't wait long enough for answers? Though my gut sense is
> that's not so.)

Maybe the downloads page (where the C/C++ package is featured) should
point users to eclipse.tools.cdt ...

Eric
Re: CDT issues [was: Eclipse C++ on Mac OS X 10.5] [message #249584 is a reply to message #249574] Wed, 20 February 2008 17:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:fpi96u$e4p$1@build.eclipse.org...
>
> Maybe the downloads page (where the C/C++ package is featured) should
> point users to eclipse.tools.cdt ...

That is one solution. But I'd like to see CDT as a first-class citizen.
Similarly with WTP issues (though we're a bit better on that score, perhaps
because there are more WTP devs). It'd be nice for eclipse.newcomer to
really be "the place you can get simple questions about getting up and
running with Eclipse answered," regardless of what exact flavor of Eclipse
you use.

(Meanwhile, I do hope someone on e.t.cdt helps the OP with his actual
question!)
Re: Eclipse C++ on Mac OS X 10.5 [message #249588 is a reply to message #249544] Wed, 20 February 2008 17:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Gareth Markwardt" <mathbeard@gmail.com> wrote in message
news:7ea94433f86cb5a276e23640a3b93b92$1@www.eclipse.org...
> Hello,
>
> I'm having trouble launching anything in eclipse. I get the "Launch
> failed no binaries" error, but I don't know what that means. I have used
> the eclipse Java before, but not the c++ version. I'm new to c++ and I'm
> not sure that that error means.


Gareth, I don't use C++ with Eclipse but I have done plenty of C++ work in
the past.

I'm guess that "no binaries" means that the launcher couldn't find an
executable to run, that is, that your link failed or that there is a problem
with the runtime path.

Are you able to find and run your program manually, e.g. by navigating to
your build directory in a command shell and typing the name of the
executable?
Re: Eclipse C++ on Mac OS X 10.5 [message #249608 is a reply to message #249588] Thu, 21 February 2008 03:01 Go to previous messageGo to next message
Eclipse UserFriend
It was actually me (Michael O'Brien) that raised the original question.

Yes, the program runs fine outside eclipse and actually runs fine inside
eclipse. It is just stopping on breakpoints that is the problem.

If I step carefully, I can reset all the breakpoints once the shared
library is loaded but that is tedious.

Eclipse displays the breakpoints in the breakpoint list, but they are
yellow in the code. ie. not able to be set.

Michael


Walter Harley wrote:
> "Gareth Markwardt" <mathbeard@gmail.com> wrote in message
> news:7ea94433f86cb5a276e23640a3b93b92$1@www.eclipse.org...
>> Hello,
>>
>> I'm having trouble launching anything in eclipse. I get the "Launch
>> failed no binaries" error, but I don't know what that means. I have used
>> the eclipse Java before, but not the c++ version. I'm new to c++ and I'm
>> not sure that that error means.
>
>
> Gareth, I don't use C++ with Eclipse but I have done plenty of C++ work in
> the past.
>
> I'm guess that "no binaries" means that the launcher couldn't find an
> executable to run, that is, that your link failed or that there is a problem
> with the runtime path.
>
> Are you able to find and run your program manually, e.g. by navigating to
> your build directory in a command shell and typing the name of the
> executable?
>
>
Re: Eclipse C++ on Mac OS X 10.5 [message #249611 is a reply to message #249588] Thu, 21 February 2008 06:14 Go to previous messageGo to next message
Eclipse UserFriend
Walter Harley wrote:
> "Gareth Markwardt" <mathbeard@gmail.com> wrote in message
> news:7ea94433f86cb5a276e23640a3b93b92$1@www.eclipse.org...
>> Hello,
>>
>> I'm having trouble launching anything in eclipse. I get the "Launch
>> failed no binaries" error, but I don't know what that means. I have used
>> the eclipse Java before, but not the c++ version. I'm new to c++ and I'm
>> not sure that that error means.
>
>
> Gareth, I don't use C++ with Eclipse but I have done plenty of C++ work in
> the past.
>
> I'm guess that "no binaries" means that the launcher couldn't find an
> executable to run, that is, that your link failed or that there is a problem
> with the runtime path.
>
> Are you able to find and run your program manually, e.g. by navigating to
> your build directory in a command shell and typing the name of the
> executable?
>
>

I would guess that you need to configure the correct binary parser for
your project (Project Properties > C/C++ Build > Settings > Binary
Parsers). Otherwise the binaries are not recognized as executable files.

HTH
--
Anton Leherbauer
Wind River CDT Team, Austria
Re: Eclipse C++ on Mac OS X 10.5 [message #249776 is a reply to message #249611] Thu, 21 February 2008 10:03 Go to previous messageGo to next message
Eclipse UserFriend
On 2008-02-21 06:14:08 -0500, Anton Leherbauer
<anton.leherbauer@windriver.com> said:

> Walter Harley wrote:
>> "Gareth Markwardt" <mathbeard@gmail.com> wrote in message
>> news:7ea94433f86cb5a276e23640a3b93b92$1@www.eclipse.org...
>>> Hello,
>>>
>>> I'm having trouble launching anything in eclipse. I get the "Launch
>>> failed no binaries" error, but I don't know what that means. I have
>>> used the eclipse Java before, but not the c++ version. I'm new to c++
>>> and I'm not sure that that error means.
>>
>>
>> Gareth, I don't use C++ with Eclipse but I have done plenty of C++ work
>> in the past.
>>
>> I'm guess that "no binaries" means that the launcher couldn't find an
>> executable to run, that is, that your link failed or that there is a
>> problem with the runtime path.
>>
>> Are you able to find and run your program manually, e.g. by navigating
>> to your build directory in a command shell and typing the name of the
>> executable?
>>
>
> I would guess that you need to configure the correct binary parser for
> your project (Project Properties > C/C++ Build > Settings > Binary
> Parsers). Otherwise the binaries are not recognized as executable files.
>
> HTH

Also, make sure that the compiler is actually generating debug symbols.
The correct parser is the "Mach-O" binary parser.

Mike
OS X 10.4/Eclipse 4/CMake
Re: Eclipse C++ on Mac OS X 10.5 [message #249779 is a reply to message #249776] Thu, 21 February 2008 11:37 Go to previous messageGo to next message
Eclipse UserFriend
>> I would guess that you need to configure the correct binary parser for
>> your project (Project Properties > C/C++ Build > Settings > Binary
>> Parsers). Otherwise the binaries are not recognized as executable files.
>>
>> HTH
>
> Also, make sure that the compiler is actually generating debug symbols.
> The correct parser is the "Mach-O" binary parser.
>


Yes, I'm using the Mach-O parser with debug symbols. I'm manually
loading the shared library using dlopen. After loading, I call dlsym to
get a function address. I can step into the shared library and do
symbolic debugging - so this means that it has debug symbols and the
parser is working. But eclipse/CDT is not re-establishing the
breakpoints. Is there an eclipse command to "re-establish" all breakpoints?

Michael
Re: Eclipse C++ on Mac OS X 10.5 [message #249787 is a reply to message #249608] Thu, 21 February 2008 13:52 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Michael O'Brien" <mob@mbedthis.com> wrote in message
news:47BD2FC2.3060504@mbedthis.com...
> It was actually me (Michael O'Brien) that raised the original question.

Um, no, you might have raised some other similar question, but if you look
at the thread to which I'm responding, you'll see that this is your first
entry into it, that are not the original poster, and that the original
poster is not asking anything to do with debugging or breakpoints.

Heaven help the OP, I expect he's far away by now, having watched his thread
get hijacked with his question unanswered.
Previous Topic:"Find and install" not working
Next Topic:Toolbar Launcher Defaults to Current File, Not Last Run
Goto Forum:
  


Current Time: Tue Sep 16 16:43:33 EDT 2025

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

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

Back to the top