In ROOT5, one could add a “using namespace XXX;” statement in the RootLogon.C file, and not have to type XXX:: prefixes at the ROOT prompt for classes in this namespace.
Now using ROOT6, this seems to not work any more: this statement in my RootLogon.C gives “error: expected namespace name”. Typing the same command at the root prompt works however, but it is impractical to do this at the start of every session.
I suspect that the problem is the fact that the namespace is defined in a library which is loaded in at the beginning of the RootLogon.C, so that the parser checking the script before the library is loaded indeed does not know about the namespace yet.
Any idea on how to deal with this problem would be very much appreciated!