Eclipse Ubuntu中的“程序不是可识别的可执行文件”错误 [英] “Program is not a recognized executable” error in Eclipse Ubuntu

查看:463
本文介绍了Eclipse Ubuntu中的“程序不是可识别的可执行文件”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经发布过,但是我仍然无法使其正常工作,显然我是C ++的新手。)
我有这个你好世界! C ++程序在eclipse中使用CDT,并且我可以编译它,它的工作原理,如果我从一个控制台运行它....但是当我使用eclipse中的运行或调试命令,我得到两个不同的错误: / p>

从debug:程序不是可识别的可执行文件



从运行:Exec_tty错误:无法运行程序/blah/blah/CProjects/Practice/MAIN.cpp:未知原因



我尝试通过修改项目中的解析器,但没有运气...我我实际上使用GNU Elf解析器,而且从命令行使用gdb并且正常运行(至少对我来说)在我的eclipse配置中是错误的,但是什么??



非常感谢



D

解决方案

您不能运行 C ++源代码。您必须运行可执行文件。



在Eclipse环境中,一个简单的debug命令应该做正确的事情。您必须通过将源代码配置为调试器目标来将其混淆。


I know that this question has been posted before but I'm still not able to make it work, obviously I'm new to C++ ;) I have this "hello world!" C++ program in eclipse using CDT, and I'm able to compile it and it works if I run it from a console .... but when I use the run or debug commands inside eclipse ,I'm getting two different errors:

From debug: "Program is not a recognized executable"

From run : "Exec_tty error:Cannot run program "/blah/blah/CProjects/Practice/MAIN.cpp": Unknown reason"

I tried by modifying the parser on the project , but no luck ...I'm actually using GNU Elf parser , and I used gdb from the command line and runs normally so obviously (to me at least ) is something wrong in my eclipse configuration ...but what??

Thanks a lot

D

解决方案

You cannot run the C++ source code. You have to run the executable.

In the Eclipse environment, a simple "debug" command should do the right thing. You must have confused it by configuring the source code as the debugger target.

这篇关于Eclipse Ubuntu中的“程序不是可识别的可执行文件”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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