Running the C ++ program in eclipse displays "launch failed. Binary not foud" and "program file not specifiedr

Source: Internet
Author: User

Use eclipse to create a test project under the office computer XP, so that it can run under eclipse under XP!

However, after mingw is installed, it cannot run smoothly like the eclipse environment at home.

No matter how you set it, either the "launch failed. Binary not foud" problem occurs or the "program file not specified" problem occurs;

Initially thought it was a problem with mingw, because the Office could not access the Internet, so it could not be like a MinGW-5.1.6 at home (because it needs to download some packages online ), instead, the mingw In the qt sdk is used;

Later, I checked some information on the Internet and some netizens experienced similar problems. The following is an excerpt:

 

Using C ++ in eclipse-"program file not specified" problem encountered the same problem as this guy, but I did it in Linux. I copied the following and I miss it.

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 executions, 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)

 

Step 1 in the preceding solution is easy to understand and set, but step 2 is not easy to understand because the dialog box shown in figure is not displayed.

Later, I carefully studied the meaning of the question "program file not specified", which means runningProgramNot specified.

In my understanding, *. EXE is not specified in eclipse to run the program.

In step 1 above, on the test default Interface (in the running configuration interface), click browse in the C/C ++ appliactionbar, find the debugdirectory under the project directory, and then select the test.exe file (my program name is this name, it should be the same as the project name). After confirming, click the application and run it ~~~

It is because the running program is not specified in eclipse.

Back home, I checked the test project of eclise on my computer. It is indeed specified in eclipse, it may be because the eclipse version is relatively high (the eclipse SDK 3.7 is used at home), and this Part may be completed by ECLIPSE itself!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.