delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/05/13:15:12

Date: Sun, 5 Oct 1997 19:12:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: VBPeyton <vbpeyton AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Rookie mistakes II
In-Reply-To: <19971005155601.LAA11947@ladder02.news.aol.com>
Message-ID: <Pine.SUN.3.91.971005190539.20227C-100000@is>
MIME-Version: 1.0

On 5 Oct 1997, VBPeyton wrote:

> Unfortunately, when I try to compile basic C programs with gcc, I get
> an error message stating "file.c:1: stdio.h No such file or directory
>  [ENOENT]",
> where file.c is the name of the file I am compiling.

Since you installed the FAQ, why not look into it whenever you have 
problems?  This problem is discussed in section 8.1 of the FAQ.  Please 
read it (it tells much more than my short answer below).

Your problem is the following two lines:

>     set djgpp = c:\djgpp\djgpp.env
>     set path = c:\djgpp\bin;%path%

Do NOT leave blanks around the `=' character!  You are effectively 
defining variables "djgpp " and "path " (with the traling blanks).
Replace these two lines with the following, reboot and see if that
helps:

set djgpp=c:\djgpp\djgpp.env
set path=c:\djgpp\bin;%path%

(This assumes that you installed DJGPP in C:\DJGPP; if not, change the 
above as appropriate.)

- Raw text -


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