On Monday 31 October 2005 14:03, Dotan Cohen wrote: >I'm just getting started in programming C. My first attempt: >#include < stdio.h> Well, for starters, it probably doesn't like the space between the < and the s in < stdio.h> Thats what is occasionally known as typu :-) >void main () { > printf("\nHello World!\n"); >} > >Threw this error: >[dotancohen@localhost ~]$ gcc hello.c >hello.c:1:20: error: stdio.h: No such file or directory >hello.c: In function 'main': >hello.c:3: warning: incompatible implicit declaration of built-in >function 'printf' >hello.c:2: warning: return type of 'main' is not 'int' >hello.c:4:2: warning: no newline at end of file > >So I googled for "1:20: error: stdio.h: No such file or directory" >and found a post that suggests that the answer to the problem is found >in the gcc manual. So I started reading it, but it is long and I'm not >finding anything! > >I think that I'm missing a library stdio.h but I don't know where to >find it, and where to put it once I do find it. Or am I completly >wrong? The error message is pretty clear. > >Dotan Cohen >http://technology-sleuth.com/question/how_can_i_be_safe_online.html -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) 99.35% setiathome rank, not too shabby for a WV hillbilly Free OpenDocument reader/writer/converter download: http://www.openoffice.org Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.