Eclipse的MinGW的二进制未找到 [英] Eclipse MinGW Binary Not Found
问题描述
我试图在Eclipse中运行一个简单的C项目。
I am attempting to run a simple C project in Eclipse.
我走过的每一个可能的线索如何设置的Eclipse阅读,我想我拥有了一切正确的。
I have read through every single possible thread about setting up Eclipse and I thought I had everything correct.
我安装了Eclipse IDE的C / C ++开发人员,安装了MinGW的,和MYSYS。
I installed the Eclipse IDE for C/C++ Developers, installed MinGW, and MySys.
我已经把我的系统变量路径
到 C:\\ MinGW的\\ BIN; C:\\ MSYS \\ 1.0 \\ BIN
,我也选择了的 PE的Windows分析器的在Eclipse preferences
I have set my System Variables Path
to C:\MinGW\bin; C:\msys\1.0\bin
and I have also selected PE Windows Parser in the Eclipse preferences.
最后,我设置的环境变量的命名PATH和值中的复选框选择列表设置Path变量。
Finally, I set the Environment Variable to name PATH and value set to the Path variable in the checkbox select list.
然而,当我去运行我的程序出现错误
Yet when I go to run my program I get the error
发射失败:二进制没有找到
Launch Failed: Binary not found.
我是否忽略了什么?我已清理/重建/重新启动我的电脑,看看是否会解决这个问题,仍然没有运气。
Have I overlooked something? I have cleaned/rebuilt/restarted my computer to see if that would fix the issue, still no luck.
编辑:当我看
工程>>属性>> C / C ++通用>>路径和符号>>包括标签
Project >> Properties >> C/C++ General >> Paths and Symbols >> Includes Tab
没有上市,我想知道如果这有什么关系呢?
Nothing is listed, I'm wondering if this has something to do with it?
推荐答案
通常情况下,你只需要安装的MinGW到C:\\ MinGW的,再加入C:\\ MinGW的\\ bin添加到Windows's PATH变量。就这样。没有MSYS或需要日食fiddeling各地
Normally you just have to install mingw to c:\mingw, then add c:\mingw\bin to Windows´s PATH variable. that´s all. no msys or fiddeling around in eclipse needed
在Eclipse中只是去文件 - >新建> C ++项目,选择Executable->的Hello World ANSI C项目,然后在右侧窗口MinGW的GCC工具链。该项目应建立并从Eclipse中运行没有问题。
In Eclipse just go to File->new->C Project, select Executable->Hello World ANSI C Project, and select MinGw GCC toolchain in right window. That project should build and run from within eclipse without problems
如果MinGW的GCC工具链没有在工具链的选择显示,只需取消勾选显示项目类型和工具链,只有当他们被支撑在plattform,以让它显示出来。
If "MinGw GCC" toolchain is not shown in the toolchain selection, just uncheck the checkbox "Show project types and toolchains only if they are supported on the plattform" to make it show up
这篇关于Eclipse的MinGW的二进制未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!