www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/16/18:14:40

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP and mingw32
Date: Sun, 16 Jan 2000 14:46:56 -0600
Organization: CRL Network Services
Lines: 29
Message-ID: <38822E40.6BB7E60@a.crl.com>
References: <B0000028083 AT nordhorn DOT de>
NNTP-Posting-Host: a116024.stl1.as.crl.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i586)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jens Luedicke wrote:
> 
> Is there a way to configure DJGPP and mingw32 ?
> On a way that I can use either the gcc of DJGPP
> or the gcc or mingw32 ? Without modifying
> the PATH's everytime in my autoexec.bat ?
> Is that possible ?

Since both DJGPP and mingw32 (or cygwin) called their compiler driver
gcc.exe, I don't see a way to do what you wanted to do with out
resetting your PATH.

However, since DOS boxes can be configured to use different autoexec.bat
files, you can just as easily create two DOS Prompt icons on the desktop
that brings the two environments respectively.

Another thing that can be done is to use bash's ability to modify its
environment with the '. script.sh' command.  If you create a file named
'script.sh' in your bin directory with the command 
  export PATH=$(echo $PATH | sed s/DJGPP/MINGW32/g)
in it.  Then executing '. script.sh' will change the $PATH variable
within bash.  You can write another script to switch the $PATH back. But
then fifty percent of the time you are mismatching your bash with your
gcc, and I don't know what effect the, say, DJGPP bash will have on the
mingw32 gcc.

-- 
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


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