[ROOT] Initialisation of the ROOT system; Useless lines

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 28 2002 - 18:31:07 MET


Dear rooters,

Very frequently, we have receiving examples of main programs with the
following statements:

//------------------------------------------------------
int Error; //left undefined by Motif

extern void  InitGui();  // initializer for GUI
                         // needed for interactive interface
VoidFuncPtr_t initfuncs[] = { InitGui, 0 };

// Initialize the ROOT system
TROOT root("Rint","The ROOT Interactive Interface", initfuncs);
//--------------------------------------------------------

THESE STATEMENTS ARE NOT NECESSARY SINCE ROOT VERSION 3.

The Root system does not need to be initialized by a special call.
The system is automatically initialized as soon as something from libCore.so
is linked with your program.

Rene Brun



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET