在Eclipse中运行C++程序出现"Launchfailed. Binary not foud"和"Program file notSpecified"的问题
2014-03-13 17:19
726 查看
在Eclipse中运行C++程序出现"Launchfailed.
Binary not foud"和"Program file notSpecified"的问题
eclipsefilec++windowsapplicationxp
在办公室电脑XP下用eclipse建立一个test工程,本想使其可以在XP下的eclipse下运行起来!
但在装了MinGW后,却不能像家里的eclipse环境一样,可以顺利run起来。
不管怎么设置,要么出现"Launch failed. Binary not foud"问题,要么出现"Program
file not Specified"问题;
初始以为是MinGW的问题,因为办公室里不能上网,所以就不能像在家里用的MinGW-5.1.6了(因为这需要联网下载一些包),而是用了Qt
SDK中的MinGW;
后来在网上查了些资料,冒似有网友也出现了类似问题,摘录如下:
Using C++ in Eclipse - "Program file notSpecified" problem
遇到的问题跟这位仁兄的一样不过我的是在Linux下的,抄录如下,以滋怀念。
上面解决办法中的第1步,好理解,而且也设置了,但第2步没太理解,因为没有出现如上图中的对话框界面。
后来仔细研究了下"Program file not Specified"问题含义,意思是说运行程序没有指定。
我的理解是在eclipse中没有指定*.exe运行程序。
在上面的第2步中,在testDefault界面(即运行配置界面中)下,在C/C++
Appliaction一栏中点击Browse按钮,在项目工程目录下,找到Debug目录,然后选择test.exe文件(我的程序名是这个名字,应该是跟工程名一样的),确定后,点击应用并运行,可以了~~~
果然是因为在eclipse中没有指定运行程序的原因。
后回到家中,查看了自已电脑上eclise的test工程,的确在eclipse中有指定了,只不过是可能由于家里的eclipse版本较高(家里用的是eclipse
SDK 3.7),这部分可能由eclipse自己完成了!
Binary not foud"和"Program file notSpecified"的问题
eclipsefilec++windowsapplicationxp
在办公室电脑XP下用eclipse建立一个test工程,本想使其可以在XP下的eclipse下运行起来!
但在装了MinGW后,却不能像家里的eclipse环境一样,可以顺利run起来。
不管怎么设置,要么出现"Launch failed. Binary not foud"问题,要么出现"Program
file not Specified"问题;
初始以为是MinGW的问题,因为办公室里不能上网,所以就不能像在家里用的MinGW-5.1.6了(因为这需要联网下载一些包),而是用了Qt
SDK中的MinGW;
后来在网上查了些资料,冒似有网友也出现了类似问题,摘录如下:
Using C++ in Eclipse - "Program file notSpecified" problem
遇到的问题跟这位仁兄的一样不过我的是在Linux下的,抄录如下,以滋怀念。
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. 我的Mac下的选择是Mach-O 64 Parser 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) |
后来仔细研究了下"Program file not Specified"问题含义,意思是说运行程序没有指定。
我的理解是在eclipse中没有指定*.exe运行程序。
在上面的第2步中,在testDefault界面(即运行配置界面中)下,在C/C++
Appliaction一栏中点击Browse按钮,在项目工程目录下,找到Debug目录,然后选择test.exe文件(我的程序名是这个名字,应该是跟工程名一样的),确定后,点击应用并运行,可以了~~~
果然是因为在eclipse中没有指定运行程序的原因。
后回到家中,查看了自已电脑上eclise的test工程,的确在eclipse中有指定了,只不过是可能由于家里的eclipse版本较高(家里用的是eclipse
SDK 3.7),这部分可能由eclipse自己完成了!
相关文章推荐
- 在Eclipse中运行C++程序出现"Launch failed. Binary not foud"和"Program file not Specified"的问题
- 在Eclipse中运行C++程序出现"Launch failed. Binary not foud"和"Program file not Specified"的问题
- 在Eclipse中运行C++程序出现"Launch failed. Binary not foud"和"Program file not Specified"的问题
- eclipse c++ 问题Launch failed,Binary not found和A program file was not specified in the launch configur
- 在Eclipse下编译C++程序出现的Launch failed.Binary not found.问题的解决方法
- ubuntu 下 Eclipse C\C++ 问题:Eclipse: "Launch failed. Binary not found"
- eclipse C++ cdt运行程序时出现“launch failed.binary not found”
- Eclipse下编译C/C++程序出错:The program file specified in the launch configuration does not exist
- Eclipse运行C++问题Launch failed,Binary not found
- Linux下 Eclipse C\C++ 问题:Eclipse: "Launch failed. Binary not found"
- launch failed.Binary not found(CDT---eclipse编写c++出现的问题)
- launch failed.Binary not found 。关于在Ubuntu下新建eclipse c++项目时出现launch failed.Binary not found问题
- Eclipse C++的配置问题launch failed binary not found
- [置顶] Eclipse C++出现Launch failed,Binary not found问题安装MinGW编译器解决方案(Win7)
- [C++] C++ Eclipse CDT "launch failed. Binary not found" 解决方案
- Eclipse运行C++问题Launch failed,Binary not found
- Eclipse运行C++问题Launch failed,Binary not found
- Eclipse C++的配置问题launch failed binary not found
- Eclipse运行C++问题Launch failed,Binary not found
- 【Eclipse】Eclipse C++ MINGW :The program file specified in the launch configuration does not exist