Eclipse MinGW Binary Not Found

前端 未结 6 1971
遇见更好的自我
遇见更好的自我 2020-12-21 04:23

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

I have read through every single possible thread about setting up Eclipse and I thought I had everything correc

相关标签:
6条回答
  • 2020-12-21 04:43

    This just happened to me also, I installed MinGW on D:\MinGW (i dont like to install on C), and created an eclipse C project "dummy" (Executable-Helloworld-MinGW).

    Compilation went OK, no result, I even disabled my antivirus nothing helped, so I moved MinGW folder to C changed both Env PATH and user PATH with C:\MinGW\Bin and ...\msys\bin. Stil didnt help.

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

    Seems that I may had another "dummy" named project and my eclipse cached something in it.

    Try to create a new random named project or even a whole you workspace. Hope it helped.

    0 讨论(0)
  • 2020-12-21 04:51

    I had a similar problem where I had installed Cygwin first and it left Window->Preferences->C/C++->Debug->Source Lookup Paths with settings mingw was confused by. I clicked Restore Defaults on the Source Lookup Paths tab and everything started working properly. I guess the toolchain isn't happy with both Cygwin and mingw installed at the same time.

    0 讨论(0)
  • 2020-12-21 04:57

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

    was crossGCC then change it to

    MinGWGCC->apply and close and run program.

    I hope this solution will work for you

    0 讨论(0)
  • 2020-12-21 04:58

    I know this is an old post, but i just had the same problem and nothing i found online would work.

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

    0 讨论(0)
  • 2020-12-21 04:59

    Normally you just have to install mingw to c:\mingw, then add c:\mingw\bin to Windows´s PATH variable. that´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 MinGw GCC toolchain in right window. That project should build and run from within eclipse without problems

    If "MinGw GCC" toolchain is not shown in the toolchain selection, just uncheck the checkbox "Show project types and toolchains only if they are supported on the plattform" to make it show up

    0 讨论(0)
  • 2020-12-21 05:02

    I too faced with the same problem. Let me tell you what worked for me.

    If you are running it for the first time after installing MinGW and Eclipse make sure that you restarted the system once. And check whether the MinGW paths are added to the system path variable.

    Before running the program, build your project in 'Eclipse'. This can be done by clicking the 'Hammer' icon the toolbar or by Project >> Build Project. Now click the 'Run' button in the toolbar or click Ctrl+F11 or Run >> Run in the menu bar.

    It worked for me.

    0 讨论(0)
提交回复
热议问题