delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/22/04:36:53

Date: Wed, 22 Oct 1997 10:34:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Chris Thompson <chris_m_thompson AT compuserve DOT com>
cc: Unknown <djgpp AT delorie DOT com>
Subject: Re: Still can't sort out this set-up on Win 3.1
In-Reply-To: <199710211749_MC2-24AC-F51B@compuserve.com>
Message-ID: <Pine.SUN.3.91.971022102927.7037G-100000@is>
MIME-Version: 1.0

On Tue, 21 Oct 1997, Chris Thompson wrote:

> I have down loaded djgpp, and installed it (correctly I assume),
> but when I try to run it, I get the following:
> 
> C:\DATA\UNI\SFT_IMP1>gcc -Wall -v -g -c ex_1_01.cpp -o ex_1_01.obj
> gcc version 2.7.2
>  cpp -lang-c++ -v -undef -D__GNUC__=3D2 -D__GNUG__=3D2 -D__cplusplus -D__=
> GNUC_MINOR__=3D7 -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__G=
> O32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS -Asystem(unix) -As=
> ystem(msdos) -Acpu(i386) -Amachine(i386) -g -Wall ex_1_01.cpp C:\TMP\ccba=
> aaaa

This clearly shows that your DJGPP environment variable is set 
incorrectly...

> SET DJGPP=C:\DJGPP\DJGPP.EXE
                     ^^^^^^^^^
...and this explains it.  You need to say SET DJGPP=C:\DJGPP\DJGPP.ENV 
(note the .ENV extension!).

> I have read & re-read the FAQ's (for hours) and still I can't pinpoint
> the problem.

The FAQ explains this in section 8.1.  Did you miss that section?

> I have also included a copy of my autoexec.bat file just
> for laughs.

It's not laughable at all; posting the trace of gcc -v and the
autoexec.bat file will in most cases get your problems solved very 
efficiently.

- Raw text -


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