“Program is not a recognized executable” error in Eclipse Ubuntu

て烟熏妆下的殇ゞ 提交于 2019-12-11 16:48:21

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/13500989/program-is-not-a-recognized-executable-error-in-eclipse-ubuntu

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