Mail Archives: djgpp/1998/08/29/11:45:32
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 <fighteer AT cs DOT net> 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------
- Raw text -