Mail Archives: djgpp/2000/10/04/16:33:32
diritol <diritol AT uswest DOT net> wrote:
> Since I got rid of the Dev-C++ paths in my autoexec.bat, does this mean
> I can not use Dev-C++ anymore?
No. It just means usage of Dev-C++, or DJGPP, or both, will become a
tad bit more complicated.
> Is it not possible to have both Dev-C++ and Djgpp at the same time?
At the same time: yes
Within the same DOSbox: yes
Within the same DOSbox, at the same time: no
The core of the problem is the PATH setting, it can be different in
different DOS boxes (you can supply them with indivisual startup batch
files to set it up), or you can modify it from within the DOS box at
any time. But it usually doesn't ever work to have two C compilers in
the same PATH variable. At least one of them will fail to work.
I solved this by having, for each of my compilers (4 Borlands [don't
ask:-], 2 DJGPP trees, Cygwin, RSXNTDJ and MinGW32), a pair of batch
files: one to set up the environment for it, another to undo those
same changes. A tool like 'apath.com' from SimTel than can not only
add, but also *remove* single directories from the PATH, comes in very
handy for such a situation.
That way, I can switch compilers at any time, within the same DOS
session. Or I can set up a specialized DOS box with one of those
setup batches as its startup file, to get a 'DJGPP DOS box', or a
'Borland C++ 3.1' one, or whatever I like. (Cygwin already creates
such a setup by itself, during its installation procedure, which you
may want to have a look at).
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -