在Eclipse中运行C++程序出现"Launch failed. Binary not foud"

3 篇文章 0 订阅
When we are using CDT to write C++ in Eclipse, you may encounter the following error: (I've set up a new C++ Hello World project)

Binary not found Or Program file not Specified

So how can we solve it?

1. Right click the project, Properties->C/C++ Build->Settings->Binary Parser, Click on "PE Windows Parser" if you are a Windows user.

2. Now in the Run configurations, you can choose your C/C++ Application (At first you may not find the binaries to run because eclipse does not know how to run this binary)

上面解决办法中的第1步,好理解,而且也设置了,但第2步没太理解,因为没有出现如上图中的对话框界面。

后来仔细研究了下"Program file not Specified"问题含义,意思是说运行程序没有指定。

我的理解是在eclipse中没有指定*.exe运行程序。

在上面的第2步中,在test Default界面(即运行配置界面中)下,在C/C++ Appliaction一栏中点击Browse按钮,在项目工程目录下,找到Debug目录,然后选择test.exe文件(我的程序名是这个名字,应该是跟工程名一样的),确定后,点击应用并运行,可以了~~~

果然是因为在eclipse中没有指定运行程序的原因。

参考http://hi.baidu.com/jimmyzzxhlh/blog/item/b8dd0d1e72d2bfff1bd57690.html
http://blog.csdn.net/reille/article/details/6741197
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值