为MinGW配置Eclipse [英] Configuring Eclipse for MinGW
问题描述
我的示例代码是在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屋!