From: michael DOT mauch AT gmx DOT de (Michael Mauch) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and MingW32 on the same system? Date: Fri, 17 Apr 1998 01:32:45 +0200 Organization: Gerhard-Mercator-Universitaet -GH- Duisburg Lines: 32 Message-ID: <6h64ei$mk4$1@news-hrz.uni-duisburg.de> References: <01bd6341$befcbb20$bdafccc2 AT default> <6gl9j7$par$1 AT news-hrz DOT uni-duisburg DOT de> <35366FA3 DOT 8AB AT mjv DOT com> NNTP-Posting-Host: ppp83.uni-duisburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 16 Apr 1998 13:52:51 -0700, Michael Vanecek wrote: > Did you place these environment variables in the djgpp.env file? No, since the djgpp.env file is only read by DJGPP programs, this wouldn't be much help for the Win32 programs. I call a batch file with my Mingw32 settings before I start using Mingw32 (normally my environment is suited for DJGPP). My Mingw32 PATH statement ensures that the Mingw32 tools are found before the DJGPP tools, but because I don't have a Win32 `info´ e.g., I like to have the %djdir%/bin directory in the PATH as well. > If I initiate one .bat > file to compile a Win32 program, then would initiating the other .bat > file to compile a dos program - maybe to use Allegro, replace the path > information from the first .bat? Or would I have to reboot to clear the > memory? I've been away from Dos too long! :) You can type "PATH" and see what's going on. If you're on Win95, note that the environment settings from one DOS shell only affect that one -- there's a tool called `winset´ on your Win95 CD-ROM that sets the environment for all DOS shells opened in the future (until the next reboot). If you want to have persistent settings after rebooting, use autoexec.bat. To see the environment variables, type `set´. If you have many env. variables, pipe them through `grep´, e.g.: set |grep -i "gcc" Regards... Michael