www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/27/17:45:38

From: "Michael Book" <mjbook AT worldnet DOT att DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Problem installing DJGPP package
Lines: 93
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <2HD09.8822$Kl6.551071@bgtnsc04-news.ops.worldnet.att.net>
Date: Sat, 27 Jul 2002 20:49:02 GMT
NNTP-Posting-Host: 12.89.3.145
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1027802942 12.89.3.145 (Sat, 27 Jul 2002 20:49:02 GMT)
NNTP-Posting-Date: Sat, 27 Jul 2002 20:49:02 GMT
Organization: AT&T Worldnet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi.  I've been looking for a C compiler to get more familiar with the
language and to practice writing programs with.  The one from GNU was
referred to over and over again, but there was a Catch-22-type situation
there, in that you already had to have a C compiler to compile it, or (with
the compiled Cygwin versions), you had to have a way of decompressing .tar
or .gz files but you couldn't use Winzip or even the decompression programs
they supplied.  Based on this I figured I wouldn't be using gcc very soon.

Last Sunday, after searching for C resources online, I found the
cprogramming.com site, where sitting innocuously in the list of recommended
compilers was DJGPP.  I followed the link and was elated to find that
everything was available in .zip files.

I followed all the steps in the Zip File Picker Results (I'm using Windows
98, Version 2) and the download and unzipping were a piece of cake. However,
when I added the two necessary lines to my Autoexec.bat file and restarted
my computer, it crashed.  Windows didn't load (there was a message that it
couldn'y find WIN.COM), and I was left with a pre-DOS prompt.  I went
through the contents of the C: directory and the WINDOWS directory until I
found something that gave a MS-DOS prompt, and then I used the editor to
take out the new lines and things were back to normal.

The method of creating the djgpp.bat file with the recommended lines doesn't
work either.  When I try to start gcc from either C:\DJGPP\BIN in DOS or
with the icon that was extracted into the bin folder (which uses gcc.exe) I
get the error message "environment variable DJGPP not defined".

I've tried the help files in my version of MS-DOS, and I went through
several pages of the mail archives after searching for "installation
windows", but with no luck.  I'd appreciate any help you could give me with
this.

This is the current contents of environ.txt:

TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\BORLAND\BCC55\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4


This is the current contents of Autoexec.bat:

C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\
@IF ERRORLEVEL 1 PAUSE
REM [HEADER]
@ECHO OFF
REM [CD-ROM Drive]
REM [Miscellaneous]
REM [Display]
REM [Sound, MIDI< or Video Capture Card]
REM [Mouse]
rem - By Windows Setup - mscdex.exe /d:IDECD000 /L:M
PATH=C:\BORLAND\BCC55\BIN;%PATH%


This is the current contents of config.sys:

REM To make a DOS Boot Diskette; See the file C:\DOSBOOT\DOSBOOT.TXT

[common]
device=c:\windows\himem.sys /testmem:off
DEVICE=C:\WINDOWS\EMM386.EXE /NOEMS
DEVICE=c:\cdrom\oakcdrom.SYS /D:IDECD000
DEVICEHIGH=C:\WINDOWS\COMMAND\DRVSPACE.SYS /MOVE


There is no output for go32-v2, and gcc prints "Bad command or file name"
during compilation with -v.


This is the shortcut batch file c:\djgpp\djgpp.bat I made as suggested:

@echo off
SET PATH=C:\DJGPP\BIN;%PATH%
SET DJGPP=C:\DJGPP\DJGPP.ENV
CD C:\DJGPP\C_PROGRAMS
COMMAND


That's it.  Thanks.


Sincerely,

Michael Book




- Raw text -


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