The project is building. Yet it does not create a binary folder

I recently set up Eclipse CDT for C ++ development. I can build projects, and there will be no mistakes in the project.

When I try to start a project, I get an error: dinner failed, binary files were not found. This is the main hello word C ++ project that I created using the Eeclipse options menu File → New → C ++ Project → Executable → Hello world C ++ Project.

I tried to follow this decision . It had no effect.

I tried to clean the project and build the project several times.

I installed CDT with Eclipse v4.2 (Juno) on another computer without any problems.

I had previous issues with configuring Eclipse that I don't think are related, but details can be found here .

So the exe file is in the debug folder, but for some reason Eclipse refuses to run it. As if he did not see the exe file. How can i fix this?

Refresh

I looked at other projects that are successfully running, and noticed that they have a binaries folder that is not in projects that do not work. (Even in projects that do not work, I can run the EXE file manually by going to the debug folder that contains the EXE file after the build).

This means that for some reason, Eclipse is not creating the binaries folder with the EXE file. I tried to create the folder manually and put the EXE file in it, but the folder has a special look when eclipse creates it, and does not work when you just create the folder manually. The folder seems to contain the same file as the debug folder.

This is really frustrating.

+4
source share
6 answers

Do you see the file under the binaries virtual folder in Project Explorer?

It looks like you are a "binary parser" not choosing an executable file. Are you using the created make CDT or the one you wrote? Also check if "PE Parser for Windows" and / or "Cygwin PE Parser" is selected when opening project properties, go to the "C / C ++ Build" / Settings and "Binary Parsers" page.

+4
source

I had the same error, and here is what I did:

The correct binary parser must be selected, so Eclipse can recognize the executable: select the project, then right-click.

Project-> Properties-> C / C ++ Build-> Settings-> Binary Parsers, PE Parser (or you can choose Cygwin if you use this compiler).

This worked for me, at least for the Cross compiler.

On Linux, I use the Elf parser.

+1
source

I have the same problem. This is simply solved by saving my .c file! Only by pressing Ctrl + S in my .c file and the problem is solved. I think the reason was that the program did not build anything! Now it generates a binaries folder and works just fine!

+1
source

Eclipse Mars + CDT. Windows 7 64bit. It may be old, but if some new guy got stuck in this problem - mine was because as.exe was somehow damaged, so it could not start, therefore it did not produce a * .o file from * .s file, and then there is nothing to do due to the lack of a * .o file and subsequent without * .exe. So it looks like it is building, but because of this, an executable is not created. I fixed it by simply downloading the latest MinGW binary tools and overwriting all the / bin and / mingw32 files.

0
source

If this is your first time using Eclipse for C ++, you must build the program before running it. To build a project, select the menu "Project" → "Build Project", and then run. I think it will be done.

-1
source

When installing eclipse, I decided to configure only MinGW. As soon as I wanted to start a new project, there was no MinGW option, I created a project, and I had the same problem with the name of the question. Subsequently, I changed Properties > C/C++ Build > Tool Chain Editor to MinGW GCC . This solved my problem.

-1
source

All Articles