delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/04/18:45:06.1

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: help
Date: Fri, 04 May 2001 23:33:08 +0100
Lines: 27
Message-ID: <heb6ftcrrb2nie0l7pp5qrqts029cjidmp@4ax.com>
References: <ca DOT 14766968 DOT 282316d7 AT aol DOT com> <3AF2BAC3 DOT C7993425 AT automatos DOT com>
NNTP-Posting-Host: modem-120.californium.dialup.pol.co.uk
Mime-Version: 1.0
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 <ladeira AT automatos DOT com> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019