Re: [ROOT] TCint question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jan 30 2001 - 17:36:38 MET


Hi Olivier,
What do you want to do with TCint? May be you mean TRint !

You can find an example of main program using Root (root.exe main program).


#include "TROOT.h"
#include "TRint.h"


TROOT root("Rint","The ROOT Interactive Interface");

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

   // Enter the event loop...
   theApp->Run();

   delete theApp;

   return 0;
}


Rene Brun


Olivier Meplan wrote:
> 
> Hi rooters!
> I have a problem since the last installation of root (V3.00.02 on DEC
> that I compiled from source) with TCint.
> After  doing (in a compiled code) a new TCint() I have the following
> error message :
> 
> Error: G__CallFunc::SetArgArray() must be initialized with
> 'G__CallFunc::SetFunc(G__ClassInfo* cls,char* fname,char* args,long*
> poffset)' first
>  *** Break *** segmentation violation
> 
> Am-I doing somethings wrong?
> Thanks?
> Best Regards
> Olivier Meplan



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET