Mail Archives: djgpp/1999/10/27/10:03:46
On Tue, 26 Oct 1999, Damian Yerrick wrote:
> > You should never mix RSXNTDJ with DJGPP,
> > these are two different compilers.
>
> OK, I've installed them in \personal\djgpp and \personal\rsxntdj.
> How do I tell the system to use one GCC port or the other?
There are several possibilities; I don't know which one of them is
better suited for RSXNTDJ, since I don't have RSXNTDJ installed.
One possibility is to have two different DJGPP.ENV files, one each in
every directory. Then you change your current compiler by flipping
the value of the DJGPP environment variable and changing PATH. A
simle batch file can do this.
Another possibility is to set environment variables like
C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, COMPILER_PATH, and LIBRARY_PATH
from the command line or a batch file.
Yet another possibility is to prepare two shortcuts, one each for
every compiler, and have each shortcut run COMMAND.COM like this:
command /k djgpp.bat
(and similarly for rsxntdj.bat). Then put everything you need to set
up into these two batch files.
- Raw text -