delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/20/09:31:42

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problem using DJGPP
Date: Sat, 20 Dec 1997 00:16:05 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 22
Message-ID: <349B5495.7212@cs.com>
References: <349B5DFB DOT 7A6A AT chaffee DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp231.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Bryan Hurley wrote:
> 
> I have recently downloaded DJGPP but cannot make it work. I have put the
> lines Set DJGPP = C:\djgpp\djgpp.env and set path =C:\djgpp\bin; in my
> autoexec.bat file as stated in the FAQ but whenever I try to compile a
> program I get an error saying it cannot find stdio.h. I know stdio.h is
> in the DJGPP directory. Why can't the compiler find it? Can anyone help
> me? I had hoped this compiler could help me learn to program in C.
> Thanks in advance for any help you can give.

Your error is simple:  you should not put spaces around the '='
character in the environment settings.  This causes the environment
variable to be named "DJGPP " instead of "DJGPP".  Try again without
spaces, and it should work.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Autocracy is based on the assumption|
|       aka Fighteer I       | that one man is wiser than a million |
|   mailto:fighteer AT cs DOT com   | men.  Let's play that over again,    |
| http://www.cs.com/fighteer | too.  Who decides?"   - Lazarus Long |
---------------------------------------------------------------------

- Raw text -


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