From: "Dylan Trotter" Newsgroups: comp.os.msdos.djgpp References: <78fjlc$4iu AT bgtnsc03 DOT worldnet DOT att DOT net> Subject: Re: HELP!!!! newbie Please Help Me! Date: Sun, 24 Jan 1999 14:30:18 -0500 Lines: 42 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: oshawaisdn79.idirect.com Message-ID: <36ab74fc.0@nemo.idirect.com> X-Trace: 24 Jan 1999 14:31:08 +0500, oshawaisdn79.idirect.com Organization: via Internet Direct To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I have tried to compile a program several time and every time it has said > >cannot find libarary stdio.h > >well I did a find files on my computer and it did not find stdio.h in >the > >DJGPP directory.. Assuming you installed everything to the "C:\DJGPP\" directory, the file is "C:\DJGPP\INCLUDE\STDIO.H", all of your .h files are there. If (for some very strange reason) it is not, then your copy is messed up. Go to www.delorie.com and download the whole thing again. The code you should be using for your "Hello World" program is as follows, in case this is the problem: #include int main() { printf("Hello World!"); return 0; } If that is not what you wrote, then it will not be the official Hello World program... You also must understand what a #include directive is. If the file name of a #include is enclosed by < and >, then it looks for the file under the include directory on your machine, which should be "C:\DJGPP\INCLUDE\". >also Can I use the the stdio.h from VC++ No, you cannot. Visual C++ is essentially an entirely different language, and DJGPP is not directly portable from it. My recommendation if you want to be a serious C programmer: delete VC++ and use a real compiler (namely, DJGPP). VC++ is for people who don't want to take the time to program, who just want to slap together some Windows crap. But until you have a good understanding of the language and how things work, do not use VC++.