From: Weiqi Gao 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: NNTP-Posting-Host: a116024.stl1.as.crl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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