delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/29/23:15:45

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: why won't my .exe program run properly until I set env var?
Date: Thu, 29 Jan 1998 23:06:46 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 39
Message-ID: <34D151D6.789D@cs.com>
References: <slrn6d0feb DOT lt6 DOT davep AT hagbard DOT demon DOT co DOT uk> <19980129095701 DOT EAA26346 AT ladder02 DOT news DOT aol DOT com>
NNTP-Posting-Host: ppp229.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Fist1000 wrote:
> 
> I definitely agree. I have Turbo C++ 3.0, Watcom C/C++ 10.6, TASM5, and DJGPP
> V2 all installed and I have several different batch files to setup the
> environment to work under each, for example: set_dj2.bat, set_tc3.bat,
> set_wat.bat, and set_t5.bat.
> 
> Whenever I want to develop under a specific compiler, I just run the necessary
> batch file.

I think this could be defined as a pathological case, since a "normal"
user will usually only have one or at most two compilers on a single
machine.  In any case, the setting for the DJGPP variable, which is the
most important one, shouldn't affect other compilers in any way.  The
only setting that could affect them is the PATH, causing the wrong
programs to be run for a command line compiler, and in this case a batch
file to change the PATH is probably a good idea.

I haven't seen this personally, but I understand that some IDE-based DOS
compilers that have a separate command-line functionality require that
the INCLUDE_PATH, LIBRARY_PATH, and similar variables be set in the
system environment, instead of reading them from a file like DJGPP apps
do.  Aside from leading me to question whether these compilers are
really "easier to use" than DJGPP, this sort of situation would probably
also require some sort of batch file to set or unset the variables. 
More to the point, this finagling would have to happen anyway regardless
of whether DJGPP is one of your compilers.

I seem to have proven your point.  :-)  But I would be interested to
find out how many people who read this list use more than two compilers
on the same computer on a frequent basis.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       |"A competent and self-confident person|
|       aka Fighteer I       | is incapable of jealousy in anything.|
|   mailto:fighteer AT cs DOT com   | Jealousy is invariably a symptom of  |
| http://www.cs.com/fighteer | neurotic insecurity."  - Lazarus Long|
---------------------------------------------------------------------

- Raw text -


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