Mail Archives: djgpp/1998/04/16/20:58:33
On Thu, 16 Apr 1998 13:52:51 -0700, Michael Vanecek <webmaster AT mjv DOT com>
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
- Raw text -