www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/03/02:38:26

Date: Thu, 3 Sep 1998 09:38:24 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Troubled <xxcfgh AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: !HELP djgpp.env
In-Reply-To: <01bdd6ce$088ce3a0$44079486@pandora>
Message-ID: <Pine.SUN.3.91.980903093806.6220G-100000@is>
MIME-Version: 1.0

On 3 Sep 1998, Troubled wrote:

> I have tried for days to get DJGPP working on my computer and it doesn't.
> Firstly I had trouble compiling a simple program, the error was to do with
> finding the iostream library. After making sure the djgpp.env file was set
> properly in the autoexec.bat file the same error occurred but then
> strangely went away to be replaced by an error with streambuff.h. After
> setting the lfn=y setting in the autoexec.bat, the other error returned
> again. The env.lst file even showed the path for djgpp.env was set right.
> Then after reinstalling DJGPP I get a fatal error saying : 
> 
> 	Error in DJGPP installation
> 	Environment Variable DJGPP is not defined
> 
> Can someone please explain?		

Judging from your description, there are too many possible gotchas in
what you've done, and it would be a pain to sort them out one by one.
I suggest to remove the entire DJGPP installation and reinstall from
scratch using this step-by-step procedure:

   - create a directory for DJGPP, say, c:\djgpp.

   - go to that directory.

   - unzip all the archives USING A PROGRAM THAT SUPPORTS LONG FILE
     NAMES.  Also make sure you preserve directory structure
     (e.g. PKUNZIP needs a -d switch for that).

   - Add the following three lines to your AUTOEXEC.BAT:

	 set DJGPP=c:/djgpp/djgpp.env
	 set LFN=y
	 set PATH=c:\djgpp\bin;%PATH%

     Make sure that the last of these lines is *after* all other lines
     in your AUTOEXEC.BAT that set or change PATH.  Also make sure
     that there's no blanks around the `=' sign in these lines.

   - Reboot your computer.

   - Try to compile a simple program from the DOS prompt:

	 gcc -o hello.exe hello.c

     (where `hello.c' is a trivial Hello world program or something).
     If all goes well, you will get hello.exe that you can run.

- Raw text -


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