Why doesn't MinGW show up in the list of Eclipse/Indigo CDT Toolchains?

只愿长相守 提交于 2020-01-02 04:04:35

问题


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.

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.

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.

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.

What am I missing here?


回答1:


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

llvm4eclipsecdt is available at the eclipse marketplace.

There may be other toolchains for MinGW development as well.




回答2:


In Eclipse open Window -> Preferences -> C/C++ -> new C/C++ Project Wizard Make sure the Checkbox ("Show project types and toolchains only if they are supported on the platform") at the bottom of the window is not ticked.



来源:https://stackoverflow.com/questions/8607945/why-doesnt-mingw-show-up-in-the-list-of-eclipse-indigo-cdt-toolchains

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!