Eclipse MinGW Binary not found

I am trying to run a simple C project in Eclipse.

I read every possible topic about creating Eclipse, and I thought that everything was correct.

I installed the Eclipse IDE for C / C ++ developers, installed MinGW and MySys.

I set my Path system variables to C:\MinGW\bin; C:\msys\1.0\bin C:\MinGW\bin; C:\msys\1.0\bin , and I also selected PE Parser for Windows in the Eclipse settings.

Finally, I set the environment variable for the PATH name and the value set to the Path variable in the check box.

But when I go to run my program, I get an error message

Startup error: binary file not found.

Did I miss something? I cleaned / rebuilt / restarted my computer to make sure that this fixes the problem, but still no luck.

EDIT: When I watch

Project → Properties → C / C ++ General → Paths and Symbols → Includes a tab

Nothing is indicated, I wonder if this is related to this?

+4
source share
5 answers

Usually you just need to set mingw to c: \ mingw and then add c: \ mingw \ bin to the Windows PATH variable. it's all. no msys or fiddeling around in eclipse needed

In Eclipse, just go to File-> new-> C Project, select Executable-> Hello World ANSI C Project and select the MinGw GCC toolbar in the right window. This project should be built and run from within the eclipse without any problems.

If the "MinGw GCC" toolchain is not shown in the toolchain selection, clear the "Show project types and toolchains only if they are supported on the platform" check box to show it

+1
source

I had a similar problem when I first installed Cygwin and it left Window-> Preferences-> C / C ++ → Debug-> Source Lookup Paths with the mingw settings confused. I clicked the Restore Defaults button on the Source Search Paths tab, and it all started correctly. I think the toolchain does not suit Cygwin and mingw at the same time.

0
source

This happened to me as well, I installed MinGW on D: \ MinGW (I don't want to install on C), and created the eclipse C project "dummy" (Executable-Helloworld-MinGW).

The compilation went fine, no results, I even turned off my antivirus, nothing helped, so I moved the MinGW folder to C, changing both Env PATH and user PATH from C: \ MinGW \ Bin and ... \ msys \ bin. Steele didn't help.

So, I decided to create a new project (the same settings), but with the name "c_project", compiled and worked.

It looks like I might have another project called "dummy" and my eclipse is caching something in it.

Try creating a new random project or even a whole workspace. Hope this helps.

0
source

I know this is an old post, but I had the same problem and I did not find anything on the Internet. [/ p>

I managed to fix it by changing the default constructor from CDT Internal to GNU Make, by right-clicking the project> Properties> C / C ++ Build> Tool Chain Editor> Current Builder> GNU Make Builder.

0
source

project-> properties-> c / C ++ build-> tool chain editor-> current toolchain

was crossGCC, then changed it to

MinGWGCC-> applies, the program closes and starts.

I hope this solution will work for you

0
source

Source: https://habr.com/ru/post/1501187/


All Articles