Mail Archives: djgpp/1998/09/03/02:38:26
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 -