在 Windows 中找不到适用于 C 的 Eclipse 启动失败的二进制文件 [英] Launch Failed Binary not found Eclipse for C in Windows

查看:35
本文介绍了在 Windows 中找不到适用于 C 的 Eclipse 启动失败的二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Eclipse CDT 插件以及以下软件包:

I installed Eclipse CDT plugin and also the following packages:

  1. MinSys
  2. MinGW

我还在 PATH 环境变量中添加了它们的 bin 路径.即便如此,我也无法在 Eclipse 中编译和运行任何示例程序.
我怎样才能解决这个问题?感谢您的关心.

I have also added paths to their bin in the PATH environment variable. Even then I am unable to compile and run any sample program in Eclipse.
How can I fix this? Thanks for your concern.

推荐答案

我什至遇到了这个错误并搜索了很多来修复.幸运的是,我自己想通了.

I even faced this error and searched a lot to fix. Fortunately, I figured it out myself.

以下是您需要确保设置它们的事项:

The following are the things you need to make sure they are set:

  1. 窗口 > 首选项 > C/C++ > 新建 CDT 项目向导 > Makefile 项目 > 二进制解析器

  1. Window > Preferences > C/C++ > New CDT project wizard > Makefile Project > Binary Parsers

a) 如果您使用的是 Windows,请将其设置为 PE Windows Parser.

a) Set it to PE Windows Parser if you are on windows.

b) 如果您使用的是 Cygwin,请将其设置为 Cygwin PE Parser

b) Set it to Cygwin PE Parser if you are using Cygwin

c) 如果您使用的是 ubuntu,请将其设置为 Elf 解析器

c) Set it to Elf parser if you are using ubuntu

窗口 > 首选项 > C/C++ > 构建 > 环境

Window > Preferences > C/C++ > Build > Environment

现在单击选择"并选择路径"变量,以便在 Eclipse 中添加路径变量.

Now click on "select" and select "Path" variable so that you add you path variables in Eclipse.

现在一切都完成了!

您所要做的就是编写一个测试程序,然后按 Ctrl+B(全部构建;菜单栏上有一个按钮),然后单击运行".

All you have to do is write a test program and press Ctrl+B (Build all; there is a button on menu bar) and after that click "Run".

这篇关于在 Windows 中找不到适用于 C 的 Eclipse 启动失败的二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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