To: djgpp AT delorie DOT com Subject: Re: New C Programmer Problem Message-ID: <19961220.163011.8335.2.chambersb@juno.com> References: <32B9BAC8 DOT 5C26 AT bc DOT cybernex DOT net> From: chambersb AT juno DOT com (Benjamin D Chambers) Date: Thu, 19 Dec 1996 19:25:54 EST On Thu, 19 Dec 1996 16:59:36 -0500 Gregg Foti writes: >Hi, Hi. >My program is: >#include >main() >{ > printf("whatever"); >} > Not to be nit-picky (okay, I'm nit-picking) but I believe there are only two ANSI defined ways to declare main. The one you probably wanted to use was int main(void) { ...your commands... return(0); ...Or whatever... } >My error message is "exam.c:1: c:\digpp\studio.h: no such file or >directory (ENOENT)" > >I do have the file studio.h in my directory(digpp) where I am Did you copy that error message from the command line? In that line (and in your first line after it) the directory is digpp, but in the autoexec segment you're using djgpp... This could have been a typing error, or it could have been a mistake... Also, stdio.h should NOT be in your root (djgpp) directory. You either moved it there manually (which should NOT be done until you REALLY know what you're doing (and, hey, Who Does?)) or you didn't unzip correctly. If you used unzip386, I believe it should have unzipped all directories for you, but with pkunzip you must use the -d option, ie C:\DJGPP> pkunzip c:\download\djdev201 -d This must be done for ALL the zips you use. The -d will ensure that everything is in the correct directories, else it will all be in one. >compiling >from with the command "gcc exam.c." > >I have installed the following in my autoexec.bat: > set djgpp=c:\djgpp\djpp.env > set path=%path%;c:\djgpp\bin >I left alone my first set path statement. > Again, did you copy and paste this text, or type it in your message? What should read set djgpp=c:/djgpp/djgpp.env (the /'s don't matter, BTW, gcc treat's / and \ in the path identically) reads: set djgpp=c:\djgpp\djpp.env ^^^ You're missing the g. I don't know if these are typos in your message, or in your environment variables. Hope this helps... ...Chambers