Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,680 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,212 people online right now. Registration is fast and FREE... Join Now!




Eclipse Compile Problem

 
Reply to this topicStart new topic

Eclipse Compile Problem, Launch Failed No Binaries

usamamuneeb
post 4 Sep, 2008 - 05:18 AM
Post #1


D.I.C Head

**
Joined: 4 Sep, 2008
Posts: 67


My Contributions


I amm using Eclipse Ganymede on Windows. Whenever I compile, I get the common error, "Launch Failed, No Binaries," I gave up on Eclipse and tried to switch to Visual Studio if my computer could have accepted, but it didn't. So I switched to making tries on Eclipse only.

Now, the console shows this error at the start only:

CODE
**** Build of configuration Default for project Temp ****

(Cannot run program "make": Launching failed)


And as I have attached the image, it shows a question mark on includes. On standard C library as well. What kind of C compiler is it? Where should I get the binaries? Is make required?

Please help. I have posted the question on many forums but it seems no one is willinng to help. Because of these errors, I cannot progress to learning the language.


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM

Go to the top of the page

sensui
post 4 Sep, 2008 - 05:35 AM
Post #2


D.I.C Head

Group Icon
Joined: 24 Aug, 2008
Posts: 132



Thanked 20 times

Dream Kudos: 50
My Contributions


Try Code::Blocks. It comes with the mingw compiler.
User is offlineProfile CardPM

Go to the top of the page

perfectly.insane
post 4 Sep, 2008 - 05:49 PM
Post #3


D.I.C Addict

Group Icon
Joined: 22 Mar, 2008
Posts: 557



Thanked 46 times

Dream Kudos: 25

Expert In: C/C++

My Contributions


QUOTE(usamamuneeb @ 4 Sep, 2008 - 09:18 AM) *

I amm using Eclipse Ganymede on Windows. Whenever I compile, I get the common error, "Launch Failed, No Binaries," I gave up on Eclipse and tried to switch to Visual Studio if my computer could have accepted, but it didn't. So I switched to making tries on Eclipse only.

Now, the console shows this error at the start only:

CODE
**** Build of configuration Default for project Temp ****

(Cannot run program "make": Launching failed)


And as I have attached the image, it shows a question mark on includes. On standard C library as well. What kind of C compiler is it? Where should I get the binaries? Is make required?

Please help. I have posted the question on many forums but it seems no one is willinng to help. Because of these errors, I cannot progress to learning the language.


You should probably get a flavor of GCC for Windows. MinGW tends to be the one to use in this sort of a situation. If you get the automated installer, it will do the dirty work of adding it's directory to your PATH environment variable. Then, you should be able to use Eclipse CDT. If it still can't find make, then you need to go into the mingw bin directory and make a copy of mingw32-make.exe to make.exe in the same directory.
User is offlineProfile CardPM

Go to the top of the page

usamamuneeb
post 5 Sep, 2008 - 06:56 AM
Post #4


D.I.C Head

**
Joined: 4 Sep, 2008
Posts: 67


My Contributions


So the trouble is that I have an IDE but not a compiler? I would appreciate if you tell me where to get make for Windows. GCC is an old version as of when I checked, 2001. What about the libraries, and? A question mark is displayed on all includes.

And what I really meant to ask was, where do I get the mingw32-make.exe? Do I keep it in same directory as eclipse.exe? And how do I change the main compile command in eclipse, that is, like change make to mingw32-make. I read somewhere.

This post has been edited by usamamuneeb: 5 Sep, 2008 - 07:25 AM
User is offlineProfile CardPM

Go to the top of the page

JackOfAllTrades
post 5 Sep, 2008 - 07:31 AM
Post #5


D.I.C Addict

Group Icon
Joined: 23 Aug, 2008
Posts: 508



Thanked 45 times

Dream Kudos: 25
My Contributions


Maybe this link will be helpful?

EDIT: Using that link, I was able to successfully build and run a simple Hello, World program. Make sure you add C:\MinGW\bin to your path, and restart Eclipse.

This post has been edited by JackOfAllTrades: 5 Sep, 2008 - 08:05 AM
User is offlineProfile CardPM

Go to the top of the page

perfectly.insane
post 5 Sep, 2008 - 12:58 PM
Post #6


D.I.C Addict

Group Icon
Joined: 22 Mar, 2008
Posts: 557



Thanked 46 times

Dream Kudos: 25

Expert In: C/C++

My Contributions


QUOTE(usamamuneeb @ 5 Sep, 2008 - 10:56 AM) *

So the trouble is that I have an IDE but not a compiler? I would appreciate if you tell me where to get make for Windows. GCC is an old version as of when I checked, 2001. What about the libraries, and? A question mark is displayed on all includes.

And what I really meant to ask was, where do I get the mingw32-make.exe? Do I keep it in same directory as eclipse.exe? And how do I change the main compile command in eclipse, that is, like change make to mingw32-make. I read somewhere.


No. MinGW is installed in a different directory. Here is a HOWTO on installing MinGW:

http://www.mingw.org/node/24

The install should include all of the necessary components.
User is offlineProfile CardPM

Go to the top of the page

usamamuneeb
post 6 Sep, 2008 - 11:08 PM
Post #7


D.I.C Head

**
Joined: 4 Sep, 2008
Posts: 67


My Contributions


All very helpful. Thank you all, I am ready for programming in Windows. Do you have any clue how to do the same in Linux? GCC is working on every shell but No Binaries issue persists. Once again, thanks.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 06:44AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month