From: "Lee Goldblatt" Newsgroups: comp.os.msdos.djgpp Subject: Re: newbie help me pleez... here's the error message si get: Date: Fri, 13 Aug 1999 03:45:07 -0400 Lines: 80 Message-ID: <7p0igo$da$1@autumn.news.rcn.net> References: <7ot5iq$rnu$1 AT autumn DOT news DOT rcn DOT net> <37B328B3 DOT 8B84DEB3 AT snafu DOT de> X-Trace: +rp4b4ikrQXdUT6pmaKYjCk6dNrln94bQ2z912WnhnE= X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 13 Aug 1999 07:46:32 GMT X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Murphy< I was not running gcc from the directory that my p1.c was in, (as cited above in the post from klass). Doing that - gcc could find my c file - and it worked like a charm. Note: the main function works (so far) w/or w/out INT in front of "main". I wonder why, since it does return 0. Thanks, Lee MuRpHy wrote in message news:37B328B3 DOT 8B84DEB3 AT snafu DOT de... > you forgot the INT before main() ... > and if you are running djgpp from a text editor under windows, > you have to know, that djgpp is a dos compiler and doesn't > accept directory- or file-names larger than 8 letters yeah, i get what u r saying. > it will output the error message that you wrote: > { > gcc.exe: p1.c: No such file or directory (ENOENT) > gcc.exe: No input files > } > > /* thus is my 1st c program */ > #include > > int main() > { > printf ("hello world\n"); > return 0; > } > > Lee Goldblatt wrote: > > > here's a chunk of my dos console, I added the two required lines in my > > autoexec.bat file, below that I tried to compile and create (i assume) > > p1.exe . > > > > C:\>path > > PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND > > > > C:\>gcc p1.c -o p1.exe > > gcc.exe: p1.c: No such file or directory (ENOENT) > > gcc.exe: No input files > > ---------------------------------------------------------------------- -- > > -------------------------- > > > > I used a win95 text editor w/the source code: > > and I pasted this text file into my c:\djgpp folder > > > > /* thus is my 1st c program */ > > #include > > > > main() > > { > > printf ("hello world\n"); > > return 0; > > } > > > > ---------------------------------------------------------------------- -- > > ----------------- > > > > I don't know squat but I'm trying, can anyone make some suggestions > > to help me compile? >