Re: [Rd] Problem with Makefile.win and environment variable

2008-03-21 Thread cstrato
Dear Prof. Ripley Prof Brian Ripley wrote: > You have $(ROOTSYS), not ${ROOTSYS} as I had. Thank you very much, changing the braces did the trick, now everything works! > > Also, the output you show is missing the quotes, which is unlikely if > this was the Makefile.win version used. This is cor

Re: [Rd] Problem with Makefile.win and environment variable

2008-03-21 Thread Prof Brian Ripley
You have $(ROOTSYS), not ${ROOTSYS} as I had. Also, the output you show is missing the quotes, which is unlikely if this was the Makefile.win version used. To summarize: 1) Use ${ROOTSYS} (with braces). 2) Either use forward slashes and no spaces or ensure the path is quoted in the cl call. T

Re: [Rd] Problem with Makefile.win and environment variable

2008-03-21 Thread cstrato
Dear Prof. Ripley Here is the Makefile.win, which contains already your suggestion for spaces (thank you), but contains only 3 of 14 header files: #-- ROOTSYS = C:\\root #ROOTSYS = ${ROOTSYS} LDOPT

Re: [Rd] Problem with Makefile.win and environment variable

2008-03-21 Thread Prof Brian Ripley
> cl /Ic:\root/include /MT /EHsc /Ox /D "MSVC" /D "WIN32" /c TMLMath.cxx will AFAIK not work when passed to the shell used (which is ash), and in any case will not work for paths with spaces in. You still haven't shown us the Makefile.win, but probably you need cl /I"${ROOTSYS}/include" /MT /EH

Re: [Rd] Problem with Makefile.win and environment variable

2008-03-21 Thread cstrato
Dear Prof. Ripley Thank you for your fast reply and sorry for being not specific enough. My problem is that I need to use MS VC++ for the WinXP port of my package (xps at BioC): Here is my concrete problem and what I did: - installed MS Visual Studio Express 2008 - installed binary of ROOT fram

Re: [Rd] Problem with Makefile.win and environment variable

2008-03-21 Thread Prof Brian Ripley
On Fri, 21 Mar 2008, cstrato wrote: > > Dear all, > > When porting my package to WinXP I have the following problem: > I need to create an environment variable "MYVAR=c:\mypath" which I have > saved in the control panel "System->My Computer" (under the `Advanced' tab). > > I have two files which n