Mail Archives: djgpp/2000/01/16/18:14:40
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 -