C help with Eclipse

Reply

Join Date: Jun 2007
Posts: 20
Reputation: vladdy19 is an unknown quantity at this point 
Solved Threads: 0
vladdy19's Avatar
vladdy19 vladdy19 is offline Offline
Newbie Poster

C help with Eclipse

 
0
  #1
Sep 27th, 2008
I'm having trouble running C in eclipse. It first gives me weird syntax errors or tells me that

# include <stdio.h> is an "Unresolved inclusion"

It also will not let me build, saying "(Cannot run program "make": Launching failed)"

Am I missing something? please help.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: C help with Eclipse

 
0
  #2
Sep 27th, 2008
Which platform are you running this on ?

When I was running Eclipse 3.3 on Ubuntu 7.10, I remember encountering a similar error (for a Linux GCC toolchain based project), So I had to install the package build-essential (which includes GNU Make, GCC and other tools).

However I do not have much idea about about the first problem.
Last edited by stephen84s; Sep 27th, 2008 at 4:04 pm.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 112
Reputation: ahamed101 is an unknown quantity at this point 
Solved Threads: 14
ahamed101's Avatar
ahamed101 ahamed101 is offline Offline
Junior Poster

Re: C help with Eclipse

 
0
  #3
Sep 28th, 2008
Hi there...

If you are using Eclipse on Windows then read below...

For windows, you should download eclipse-cpp-ganymede-win32.zip from http://eclispe.org. This comes with a inbuilt gnu compiler (gcc etc)... If still you are not able to compile please install MiniGW from http://minigw.org... This is free gnu compiler...

Further if you have issues please post your problems...
regards,
Ahamed.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 241
Reputation: ssharish2005 is on a distinguished road 
Solved Threads: 20
ssharish2005's Avatar
ssharish2005 ssharish2005 is offline Offline
Posting Whiz in Training

Re: C help with Eclipse

 
0
  #4
Sep 28th, 2008
# include <stdio.h> is an "Unresolved inclusion"
Have a look at this thread, should be the same problem your facing as well. The GCC should have been confused on where the include files are located. I would really guess it shouldn't. but its worth a try!

ssharish
"Any fool can know, point is to understand"
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 3
Reputation: dopeynite is an unknown quantity at this point 
Solved Threads: 0
dopeynite dopeynite is offline Offline
Newbie Poster

Re: C help with Eclipse

 
0
  #5
Jan 17th, 2009
im having the same problem.. i read the recommended thread but i dunno where the <stdio.h> file is... i mean what am i supposed to add to the Path and Symbols?? im using Eclipse IDE plateform.. =/
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1
Reputation: jlkphidelt is an unknown quantity at this point 
Solved Threads: 0
jlkphidelt jlkphidelt is offline Offline
Newbie Poster

Re: C help with Eclipse

 
0
  #6
Feb 14th, 2009
for "unresolved inclusion" when trying to use eclipse for C++ headers like <iostream> (in windows)

1. Download Automated MinGW Installer
http://sourceforge.net/project/showf...?group_id=2435
2. In the environment variable for windows under "Path" add C:\MinGW\bin (or wherever you installed it)
3. Download Eclipse IDE for C/C++ Developers from http://www.eclipse.org/downloads/
4. Restart the computer
5. In eclipse when creating a new project MiniGW GCC should show up in the toolchain

After that if you get a "Launch failed binary not found"
1. Click the hammer button (build it) before you hit the play button (run it)
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 1
Reputation: mercury00 is an unknown quantity at this point 
Solved Threads: 0
mercury00 mercury00 is offline Offline
Newbie Poster

Re: C help with Eclipse

 
0
  #7
Apr 13th, 2009
Originally Posted by jlkphidelt View Post
for "unresolved inclusion" when trying to use eclipse for C++ headers like <iostream> (in windows)

1. Download Automated MinGW Installer
http://sourceforge.net/project/showf...?group_id=2435
2. In the environment variable for windows under "Path" add C:\MinGW\bin (or wherever you installed it)
3. Download Eclipse IDE for C/C++ Developers from http://www.eclipse.org/downloads/
4. Restart the computer
5. In eclipse when creating a new project MiniGW GCC should show up in the toolchain

After that if you get a "Launch failed binary not found"
1. Click the hammer button (build it) before you hit the play button (run it)
This doesn't make sense. I have C++ compilers on my computer already, VS C++, DevCpp, etc. I used Eclipse classic and installed the packages for java, D, python/jython, etc. Installing another build of eclipse over the one I have would be pointless at best, and destructive at worst.

Pydev works. Java works. When I try to compile hello world in c++, I get these errors about the include files and not being able to run the program "make".
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC