在OS X(C ++)中设置eclipse错误:启动失败,找不到二进制文件? [英] Setting up eclipse in OS X (C++) ERROR: launch failed, binaries not found?

查看:1155
本文介绍了在OS X(C ++)中设置eclipse错误:启动失败,找不到二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个主题有一百万个问题,我已经阅读了所有这些。我在我的电脑上安装了eclipse juno,我运行OS X Yosemite。



我只想运行一个简单的hello world程序。但我不能,我不知道为什么。



我做构建项目,即使我得到错误的一切,所以运行boost是出



我过去使用代码块,直到它每5分钟开始崩溃,我就不能这样工作了。



我不知道什么其他细节给,我有命令行工具xcode安装,我已经跟随几乎每一个博客和解决这个问题,我仍然可以得到它正确。



编辑:



语言:C ++
错误:未找到启动失败的二进制


$ b b

我有xcode命令行,jre,gcc。

解决方案

我解决了我的查询, / p>


  1. 我意识到我首先必须构建项目一次/ em>


  2. 我仍然有同样的错误启动失败,我意识到eclipse找不到建立的二进制文件,该文件直接,没有工作,但是什么工作是将eclipse解析器设置为马克解析器,而不是默认的elf。


  3. 对于某些人来说,下载32


  4. 我也将我的eclipse版本从juno更新到luna / <>> 你需要安装JRE和Xcode命令行工具



    PS我没有详细说明,因为单个google搜索会给你详细的步骤,我想指出问题和为我工作的解决方案,这些步骤已经可用。


    There are a million questions on this topic,and I have read all of them. I have installed eclipse juno on my computer, I run OS X Yosemite.

    I just want to run a simple hello world program. But I can't,I don't know why.

    I do build the project ,even if I do I get errors for everything, so running boost is out of question.

    I used to use codeblocks, until it started crashing every 5 minutes,I cant work that way anymore.

    I don't know what other details to give,I have the command line tools xcode installed,i have followed almost every blog and questions addressing this,I still can?t get it right.

    EDIT:

    language: C++ ERROR: launch failed binary not found

    I have xcode command lines,jre,gcc.

    解决方案

    SO I solved my queries, here it goes:

    1. I realised that I first had to build my project once(just once) and then running it would be enough

    2. I still got the same error launch failed, i realised that eclipse could not locate the binary file that was built, I tried indicating the file directly,did not work, but what worked was setting the eclipse Parser as the mach-o-parser instead of the default elf.

    3. Another problem was to set the compiler from GNU to the mac compiler.

    4. For some people,downloading the 32-bit version worked,you could try this out.

    5. I also updated my version of eclipse from juno to luna(dint make a difference,did it anyway)

    NOTE: for the above you need to have installed the JRE and Xcode command line tools

    P.S I did not elaborate more as an individual google search will give you detailed steps,I wanted to indicate the problems and solutions that worked for me,the steps are already available.

    这篇关于在OS X(C ++)中设置eclipse错误:启动失败,找不到二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆