为MinGW配置Eclipse [英] Configuring Eclipse for MinGW

查看:138
本文介绍了为MinGW配置Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse Juno与MinGW(最新版本)在我的Win7笔记本电脑上。
我的示例代码是在IDE中成功构建的,但是我不能运行也不能调试!



当我选择Run as => Local C / C ++ - 应用程序,我得到


启动失败。二进制未找到。


但是,由于构建过程,因此有一个exe文件!



当我调用cmd.exe,导航到源目录并调用这个内置的exe(a.out.exe),它的工作没有问题!



我想这是由于错误/缺少配置的eclipse,但我找不到有用的信息到目前为止。
此主题提及环境变量。我添加了MinGW和Msys到我的PATH变量(这就是为什么我可以编译),但是我无法在eclipse中运行我的软件!



那么,可以做什么来启用调试?

解决方案

我已经做了一个小教程。

如何为Eclipse设置全部,看看它在这里 https://stackoverflow.com/a/12169583/1322642



希望可以帮你一点点。


I am using Eclipse Juno with MinGW (latest version) on my Win7-Laptop. My example code is successfully built within the IDE, but I can neither run nor debug it!

When I choose Run as=>Local C/C++-Application, I get

Launch failed. Binary not found.

However, there IS an exe-file as a result of the build process!

When I call cmd.exe, navigate to the source directory and call this built exe (a.out.exe), it works without problems!

I guess this is due to wrong/missing configuration of eclipse, but I couldn't find useful info on that so far. This thread mentions environment variables. I added MinGW and Msys to my PATH variable (that's why I can compile) but I can't run my software in eclipse!

So, what can be done to enable debugging?

解决方案

I have made a little tutorial.
how to set all for Eclipse have a look it's here https://stackoverflow.com/a/12169583/1322642

Hope it can help you a little bit.

这篇关于为MinGW配置Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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