www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/21/23:00:39

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP Error
Date: Tue, 21 Apr 1998 18:17:40 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 62
Message-ID: <353D1B04.5AAB@cs.com>
References: <6hfsu1$7us$1 AT o DOT online DOT no> <353ce529 DOT 2832887 AT news DOT bnl DOT gov>
NNTP-Posting-Host: ppp246.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

James Waters wrote:
> 
> I get the same error message trying to compile the "hello.c" program.
> I'm new to DJGPP, but not new to C.  I've read the README.1ST file and
> modified my AUTOEXEC.BAT file accordingly.  There does't seem to be
> any info for this problem in the FAQ.

Have you looked?  Chapters 8.1 and 8.2 specifically describe this
problem along with possible solutions.

> I unzipped all the files as follows:
> 
> d:\DJGPP>pkunzip -d d:\tmp\<filename>.zip

Under Win95, pkunzip does not preserve the long filenames that are
stored in the zipfiles.  You may want to reinstall with a LFN-aware
program such as Winzip.  See chapter 8.2 of the FAQ for more info.

> gcc.exe : installation problem, cannot exec 'cpp': No such file or
> directory (ENOENT).
> 
> I tried editing the DJGPP.ENV file without luck.  I did find some
> possilbe sources for errors in the [cpp] section.

You should _not_ _ever_ edit the djgpp.env file unless you know what
you're doing.  Specifically do not change the line that reads +DJDIR=;
if you do, your files will not be found.

> 1. CPLUS_INCLUDE_PATH - there is no %DJDIR%/contrib/grx20/include.  It
> is now /contrib/grx22/include
> 2. I deleted the OBJCPLUS_INCLUDE_PATH and OBJC_INCLUDE_PATH lines
> because I didn't download Object C and the /lang/objc directory didn't
> exist. But, that didn't help.

Please go back and reunzip 'djgpp.env' and start over.  You should not
have made those changes; they only make the problem worse.

According to what you've said, you seem to have installed DJGPP in the
directory D:\DJGPP.  Your autoexec.bat settings should therefore look
like this:

PATH=D:\DJGPP\BIN;%PATH%
SET DJGPP=D:\DJGPP\DJGPP.ENV

Please note that you cannot have spaces in the DJGPP setting.  If they
do look like this, and you still aren't succeeding, try to prepare a
full system report according to chapter 6.12 of the FAQ.  Specifically,
we need the contents of your 'config.sys', 'autoexec.bat', and
'djgpp.env', the output of "set" from the DOS prompt, and the full
output of "gcc -v".

Alternatively, you could try out my DJVERIFY diagnostic utility, the
latest version of which can be downloaded from my web page.  It can
detect problems and prepare a system report automatically.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |     mailto:fighteer AT cs DOT com     |
| "Starting flamewars since 1993"  |   http://www.cs.com/fighteer/  |
|  *** NOTICE ***  This .signature |       ICQ UIN#:  7406319       |
|  is generated randomly.  If you don't like it, sue my computer.   |
---------------------------------------------------------------------

- Raw text -


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