www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/04/16:33:32

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CAN'T get DJGPP to WORK. HElP?
Date: 4 Oct 2000 10:25:59 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 37
Message-ID: <8rf0jn$ql1$1@nets3.rz.RWTH-Aachen.DE>
References: <39D679E9 DOT 5C2A5D0E AT uswest DOT net> <39D8E854 DOT 19FCD756 AT uswest DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 970655159 27297 137.226.32.75 (4 Oct 2000 10:25:59 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 4 Oct 2000 10:25:59 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019