From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: help Date: Fri, 04 May 2001 23:33:08 +0100 Lines: 27 Message-ID: References: <3AF2BAC3 DOT C7993425 AT automatos DOT com> NNTP-Posting-Host: modem-120.californium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news6.svr.pol.co.uk 989015570 31342 62.136.68.248 (4 May 2001 22:32:50 GMT) NNTP-Posting-Date: 4 May 2001 22:32:50 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Andre Ladeira wrote: > TopDogg962 AT aol DOT com wrote: > > when i put this in > > gcc hello.c -o hello.exe > > it gives me this message > > gcc.exe: hello.c: No such file or directory (ENOENT) > > gcc.exe: No input files > Your only problem in this case is that the compiler can't find the source > code (hello.c). This is true. > 1- Change the PATH in autoexec.bat: > PATH=%PATH%;C:\(your source code directory here); > save and run autoexec.bat. No, the PATH variable is not used to search for the source file, although the PATH does need some attention, as Hans-Bernhard has already pointed out. Try running the dir command to check that the file is listed with the expected filename. This is explained in the FAQ, section 8.1.