delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/07/22:14:35

From: weiqigao AT crl DOT com (Weiqi Gao)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: New user: help with dual installation of gcc (djgpp and Windows 32 version)
Date: Tue, 07 Jan 1997 20:26:02 GMT
Organization: CRL Dialup Internet Access
Lines: 35
Message-ID: <5aubkm$2te@nexp.crl.com>
References: <32d2942f DOT 1396198 AT news DOT enterprise DOT net>
NNTP-Posting-Host: crl6.crl.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

nigelhoult AT enterprise DOT net (Nigel Hoult) wrote:

>I've got two versions of gcc on my machine; the "minimalist" windows
>32 version, which is my "default", and djgpp. I've got variables like
>C_INCLUDE_FILES specified in my AUTOEXEC.BAT for the former, and this
>works fine. However, when I run setdjgpp.bat, which is supposed to set
>things up to use the environment file djgpp.env, the settings there do
>not seem to override my previously defined environment variables, and
>I have to explicitly redefine them to use djgpp, which is a bit
>tedious. Could someone explain how djgpp uses the .env file and local
>environment variables to find its files, please, so that I can see if
>there is a way round this.

This is going to matter only if you use Windows 95:

Aside from noting that the DJGPP.ENV setting for these variables pulls
in what's already defined in the ambient, let me also mention a
wonderful little utility on the Windows 95 CD called "winset.exe".
This command resets environmental variables in the current DOS box AS
WELL AS in the master Windows 95 environment (so that the next DOS box
you pull up will have the changed environmental variables.)

Create two batch files djgppvar.bat and othergcc.bat that defines the
appropriate environment variables with winset.exe, bring them to the
desktop (maybe making them run minimized).  Double click on the
djgppvar.bat icon, open your djgpp DOS box; then double click the
othergcc.bat icon, and open your other GCC DOS box.  And you have two
DOS boxes with two different sets of environments!

Hope that helps.

--
Weiqi Gao
weiqigao AT crl DOT com

- Raw text -


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