Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

c - Eclipse MinGW Binary Not Found

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 correct.

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

I have set my System Variables Path to C:MinGWin; C:msys1.0in and I have also selected PE Windows Parser in the Eclipse preferences.

Finally, I set the Environment Variable to name PATH and value set to the Path variable in the checkbox select list.

Yet when I go to run my program I get the error

Launch Failed: Binary not found.

Have I overlooked something? I have cleaned/rebuilt/restarted my computer to see if that would fix the issue, still no luck.

EDIT: When I look at

Project >> Properties >> C/C++ General >> Paths and Symbols >> Includes Tab

Nothing is listed, I'm wondering if this has something to do with it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Normally you just have to install mingw to c:mingw, then add c:mingwin 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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...