launch failed.Binary not found

时间:2023-03-08 17:24:46

1、在eclipse官网中下载已经集成了CDT的eclipse。(http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/R/eclipse-cpp-kepler-R-win32.zip

2、下载并安装。

3、进入eclipse,并按以下步骤进行操作。“File” --------》“new”------》“c++ project”----》这时你会看到以下界面:

launch failed.Binary not found
launch failed.Binary not found

launch failed.Binary not found

(左边选择Empty project,右边选择MinGWhyGCC)

------》“next”------》这时你会看到以下界面:

launch failed.Binary not found

-----------》“Finish”--------------这时便成功新建一个项目

3、编写代码。

右击项目----》”new“-------》”source file“--------》这时你会看到以下界面:

launch failed.Binary not found

--------------》这时,编写代码如下:

#include <iostream>

using namespace std;

int main(){

	cout<<"hello ! 章泽天是c++程序员的女神!!!"<<endl;
}

4、运行

这时,若直接”run as c++application“,这会报

launch failed.Binary not found的错误,如下图所示:

launch failed.Binary not found

(注意,这时应该右击项目----》”Build configuration“------》”build selected“-----》这时你会看到以下界面:)

launch failed.Binary not found

(这里,尽量两个都选上).---->单击ok

6、成功。

这时在runas c++application就可以正常运行了。。。。。。。