RE: [ROOT] windows: creates temfile in c:\

From: Bertrand Bellenot (
Date: Wed Nov 03 2004 - 20:43:51 MET


This problem comes from usage of tmpfile(), which create the temp file
in the root ( C:\ ) directory. 
To solve the problem, Root must be built with the flag G__TMPFILE
defined in the compiler options. 

HTH, cheers,

-----Original Message-----
[] On Behalf Of Christian Vogel
Sent: Wednesday, November 03, 2004 8:02 PM
Subject: [ROOT] windows: creates temfile in c:\


I just downloaded root 4.00/08[1], the recommended version,
and extracted it to c:\Program Files\root. I have set the environment
variables like that (confirmed with the "set" command):

HOME=c:\Documents and Settings\chris   (== %USERPROFILE)
ROOTSYS=c:\Program Files\root
PATH={way too much stuff};c:\Program Files\root\bin

now if I start rootn.exe it is found in my path but it complains about
not being able to write some files, and it crashes for example if I try
tab-completion ( for example: "gEnv->Print(<TAB>" ).

I found out that those files are created in C:\. If I make c:\ writeable
to the user running rootn.exe (by issuing cacls c:\ /e /g chris:F) it
works as expected, but of course that behaviour is not desireable.

Which environment variable does root look at when building temporary
filenames? Or is there some other cure for that problem?



Mophobia, n.: Fear of being verbally abused by a Mississippian.

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET