943,568 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 51413
  • C RSS
Sep 27th, 2008
-1

C help with Eclipse

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vladdy19 is offline Offline
20 posts
since Jun 2007
Sep 27th, 2008
0

Re: C help with Eclipse

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.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Sep 28th, 2008
0

Re: C help with Eclipse

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...
Reputation Points: 51
Solved Threads: 14
Junior Poster
ahamed101 is offline Offline
114 posts
since Jul 2008
Sep 28th, 2008
0

Re: C help with Eclipse

Quote ...
# 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
Reputation Points: 73
Solved Threads: 20
Posting Whiz in Training
ssharish2005 is offline Offline
253 posts
since Dec 2006
Jan 17th, 2009
0

Re: C help with Eclipse

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.. =/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dopeynite is offline Offline
3 posts
since Jan 2009
Feb 14th, 2009
0

Re: C help with Eclipse

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)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jlkphidelt is offline Offline
1 posts
since Feb 2009
Apr 13th, 2009
0

Re: C help with Eclipse

Click to Expand / Collapse  Quote originally posted by jlkphidelt ...
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".
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mercury00 is offline Offline
1 posts
since Apr 2009
Mar 11th, 2010
-2
Re: C help with Eclipse
I found this on the Eclipse website that can add to your comment...

http://forums.whirlpool.net.au/forum-replies-archive.cfm/1092062.html
Reputation Points: 6
Solved Threads: 0
Newbie Poster
jgrimz is offline Offline
1 posts
since Mar 2010
Apr 16th, 2010
0
Re: C help with Eclipse
if you followed the Eclipse instructions you installed MinGW but not MingW make, which you installed with MSYS. then the path needs to show that... in the build configuration append c:/msys/1.0/bin to c:/mingw/bin
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lmpmbernardo is offline Offline
1 posts
since Apr 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in C Forum Timeline: hash function
Next Thread in C Forum Timeline: Problem!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC