Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error on stdio.h(Hello World compiles with errors because compiler can't find include files)
Error on stdio.h [message #1728349] Sun, 03 April 2016 06:24 Go to next message
Bill Miller is currently offline Bill MillerFriend
Messages: 2
Registered: April 2016
Junior Member
Just got Eclipse today. Is that newcomer enough?

I tried to compile the HelloWorld project and got errors on the include of stdio.h and stdlib.h. I can't find them anywhere on my PC. I didn't see them in the zip file either.

I downloaded and installed the Eclipse IDE for C/C++ Developers 64bit windows edition. I'm running Windows 10.

Are they hiding in some location with a different name? If so, I guess I need to adjust my PATH configuration. If I need to download something else, let me know.

Thanks,


Re: Error on stdio.h [message #1728385 is a reply to message #1728349] Mon, 04 April 2016 06:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29112
Registered: July 2009
Senior Member
Bill,

Probably you should have a look at https://www.eclipse.org/cdt/,
particularly the starter documentation. Also note that CDT has a
specialized forum so best to ask about out there...


On 03.04.2016 22:07, Bill Miller wrote:
> Just got Eclipse today. Is that newcomer enough?
>
> I tried to compile the HelloWorld project and got errors on the
> include of stdio.h and stdlib.h. I can't find them anywhere on my PC.
> I didn't see them in the zip file either.
> I downloaded and installed the Eclipse IDE for C/C++ Developers 64bit
> windows edition. I'm running Windows 10.
>
> Are they hiding in some location with a different name? If so, I
> guess I need to adjust my PATH configuration. If I need to download
> something else, let me know.
>
> Thanks,
>
>
>
Re: Error on stdio.h [message #1728488 is a reply to message #1728385] Mon, 04 April 2016 20:17 Go to previous messageGo to next message
David Vavra is currently offline David VavraFriend
Messages: 641
Registered: October 2012
Senior Member
stdio.h and stdlib.h are standard C headers that come with the compiler.

Eclupse/CDT uses GCC so that will have to be installed.
Running under Windows is trickier than Linux.

You generally have to install MinGW or Cygwin. Cygwin provides a Linux environment under Windows while MinGW can be used to build Windows executable files. You need to decide which you would prefer to use.

What you exactly need to do depends on your choice.
This is a bit out of date but could get you started:
https://www3.ntu.edu.sg/home/ehchua/programming/howto/EclipseCpp_HowTo.html

Re: Error on stdio.h [message #1728624 is a reply to message #1728488] Wed, 06 April 2016 02:12 Go to previous message
Bill Miller is currently offline Bill MillerFriend
Messages: 2
Registered: April 2016
Junior Member
Thanks David,

I've decided to use Microsoft Visual Studio Community instead of Eclipse. At least I can get VS to compile and run a C program.

Thanks.
Previous Topic:Adafruit Motor Shield sample code does not work on Eclipse ide
Next Topic:eclipse can't find installed library
Goto Forum:
  


Current Time: Tue Jan 16 21:48:31 GMT 2018

Powered by FUDForum. Page generated in 0.02289 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software