RE:rookie help

Masaharu Goto (MXJ02154@nifty.ne.jp)
Sun, 09 May 1999 09:21:55 +0900


Dear Levi,

>I'm new to things around here. How do I set ROOTSYS for .rootrc because
>when I enter root there's a message:

You set ROOTSYS before you start ROOT session.

In UNIX : $ export ROOTSYS=/yourdirectory/root
In Windoes: c:\> set ROOTSYS=c:\yourdirectory\root

Note that /yourdirectory/root is just an example. You should give name
of the directory where you installed ROOT.

Many people write above setting in $HOME/.profile or c:\autoexec.bat
so that it is set at login.

>Warning: environment variable ROOTSYS is not set. Standard include files
>ignored.
>(What does the second sentence imply?)

Second sentence means ROOT/CINT can not read header files , such as
iostream.h , from correct location.

>Another thing: I followed Masaharu's advice to load iostream.h in
>rootlogon.C. Then I tried running my first macro that use <iostream.h>,
>there is an error message:
>Limitation: can not handle macro _RTLENTRY __cdecl Use +P or -p option
> FILE:C:/Bc5/Include/_defs.h LINE:48
>*** Interpreter error recovered ***

Above answer already explained this. Because ROOTSYS is not set,
ROOT/CINT read wrong iostream.h. It causes this problem. Setting ROOTSYS
will solve it.

Thank you
Masaharu Goto