Re: Compiling Root Code For Standalone With g++

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jul 30 1999 - 09:22:27 MEST


Hi Jon,
I did not see your original mail. However, I am suspecting you are
trying
to create your own main interactive program.
See the Root example itself in
  $ROOTSYS/src/MAIN_rmain.cxx
If you do not have teh Root source, here are the few lines you need:

int main(int argc, char **argv)
{
   TRint *theApp = new TRint("Rint", &argc, argv, 0, 0);

   // Init Intrinsics, build all windows, and enter event loop
   theApp->Run();

   return(0);
}

You can also look at $ROOTSYS/test/Hworld.cxx

Rene Brun

Jon Gans wrote:
> 
> Yes, I am replying to myself!
> Thanks from a tip from Charles Maguire across the ring at PHENIX I leaned
> I needed the line:
> 
> TROOT simple("simple", "Example of creation of a tree");
>         as the first line of the main() function.
> 
> It works! it compiles! and sorta even runs. H
> 
> owever, my TControlBar doesn't pop up, nor do any canvases or anything.
> Just the constructor and destructor.
> 
> Do I have to change my CINT code so the GIU stuff works? I have
> TControlBar TCanvas, and tons of histograms.
> 
>  thanks alot
>  jon



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET