为什么MinGW没有显示在Eclipse/Indigo CDT工具链列表中? [英] Why doesn't MinGW show up in the list of Eclipse/Indigo CDT Toolchains?

查看:99
本文介绍了为什么MinGW没有显示在Eclipse/Indigo CDT工具链列表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7桌面上运行的Eclipse(Indigo)上设置C/C ++开发环境.我已将MinGW安装到C驱动器上按照eclipse.org上的说明,并将环境变量* MINGW_HOME *设置为 C:\ MinGW ,并将 C:\ MinGW \ bin 添加到我的路.

I am trying to set up a C/C++ development environment on Eclipse (Indigo) running on my Windows 7 desktop. I have installed MinGW onto my C drive per the instructions at eclipse.org, and added the environment variable *MINGW_HOME* set to C:\MinGW and added C:\MinGW\bin to my path.

当我运行eclipse并尝试创建一个新的C或C ++项目时,我应该在项目创建向导对话框中将MinGW视为可用的工具链之一.相反,我在可用工具链列表中看到的只是:

When I run eclipse and try to create a new C or C++ project, I should be seeing MinGW as one of the available Toolchains in the project creation wizard dialog. Instead, all I see in the list of available toolchains is:

-其他工具链-

--Other Toolchain--

当我从项目属性中选择工具链编辑器时,唯一可选的当前工具链:"是无工具链.

When I select Tool Chain Editor from the project properties, the only selectable "Current toolchain:" is No ToolChain.

我可以看到已经安装了C:\ MinGW,并且可以从CMD提示窗口运行gcc和g ++,所以我很确定我已正确设置了路径.

I can see that C:\MinGW is installed, and I can run gcc and g++ from a CMD prompt window, so I am pretty sure that I have path set correctly.

我在Eclipse网站上可以找到的唯一故障排除建议是我在PC上安装了MinGW工具链,但Eclipse找不到它,但是所有这些建议都不起作用.

The only troubleshooting suggestion I can find at the eclipse site is I installed MinGW toolchain on my PC but Eclipse won't find it but none of those suggestions work.

我在这里想念什么?

推荐答案

事实证明,您需要单独安装工具链.我发现的一个工具链:

It turns out that you need to install the toolchain separately. One toolchain that I found:

llvm4eclipsecdt 可在 MinGW开发可能还会有其他工具链.

There may be other toolchains for MinGW development as well.

这篇关于为什么MinGW没有显示在Eclipse/Indigo CDT工具链列表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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