From: MuRpHy Newsgroups: comp.os.msdos.djgpp Subject: Re: newbie help me pleez... here's the error message si get: Date: Thu, 12 Aug 1999 22:04:03 +0200 Organization: 3Devils Lines: 52 Message-ID: <37B328B3.8B84DEB3@snafu.de> References: <7ot5iq$rnu$1 AT autumn DOT news DOT rcn DOT net> NNTP-Posting-Host: n163-180.berlin.snafu.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: ja,en,zh To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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?