From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: How to locate djgpp.env? Date: Sat, 29 Aug 1998 11:36:13 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 44 Message-ID: <35E81FED.FC1C7F0B@cs.net> References: <3 DOT 0 DOT 1 DOT 16 DOT 19980829103402 DOT 378f1c32 AT shadow DOT net> NNTP-Posting-Host: ppp133.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ralph Proctor wrote: > > I changed: > > +TMPDIR=%DJDIR%/tmp > > to > > +TMPDIR=D:/ [D:/ is a ramdrive] > > I only did this because it "SEEMS RIGHT". I think I read somewhere that > DJGPP.ENV in this case ignores this line anyway if you have a tmpdir > allocated in your autoexec.bat file. But I just changed the line to be sure. > Would you comment on this? > > DJVERIFY shows me that my tmpdir works just fine when I compile the test > file. Also my compiles work as expected. Don't worry; I don't mean that djgpp.env should never be modified; in fact, I've made a couple of changes to mine. There's no problem as long as you know what you're doing, and keep a backup handy in case you mess up. In your case, changing +TMPDIR has the effect of making D:\ the default, but the setting may still be overridden by your environment. This is just fine... except that if you do boot up into a configuration where your ramdrive isn't active and TMPDIR isn't set to something else, DJGPP programs will try to use a nonexistent (or nonwriteable if your CD-ROM becomes D:) drive and will fail. I use a multi-configuration bootup, and in my autoexec.bat I have code that detects whether D: (my ramdrive) exists and is writeable, and if so, it sets TMPDIR there; otherwise it uses my default c:\windows\temp\ directory. -- John M. Aldrich, aka Fighteer I UIN# 7406319 -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? C++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++ e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------