Re: [ROOT] Error with TApplication

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jun 02 2001 - 19:27:25 MEST


Hi Julien,

This problem had already been fixed in the CVS source.
We are planning to make the final release of 3.01 middle of next week.

Also note that in version 3.01, you can simplify your main program to:
#include <TApplication.h>
#include <TGClient.h>
#include <TidGUI.h>

int main(int argc, char **argv)
{   
   TApplication theApp("App", &argc, argv);

   TidGUI g;
  
   theApp.Run();
   return 0;  
}


Rene Brun

On Sat, 2 Jun 2001, Julien Sylvestre wrote:

> Rooters,
> 
> 	I'm trying to run the following code:
> 
> #include <TROOT.h> 
> #include <TApplication.h>
> #include <TGClient.h>
> 
> #include <TidGUI.h>
> 
> extern void InitGui(); 
> 
> VoidFuncPtr_t initfuncs[] = { InitGui, 0 }; 
> 
> TROOT root("Client", "PROTO GUI environement", initfuncs); 
> 
> 
> 
> int main(int argc, char **argv) 
> {
> 
>   TApplication theApp("App", &argc, argv); 
> 
>   TidGUI g; 
> 
>   theApp.Run();
>   return 0;
> 
> }
> 
> 
> I am able to run it on a computer where ROOT 3.00 is installed. On another
> computer with ROOT 3.01-03, I get the following error message at the line
> where I construct the theApp object:
> 
> Error: class,struct,union or type TGeometry not defined  FILE: LINE:0
> Error: No symbol TGeometry::Get("TGX11") in current scope  FILE: LINE:0
> *** Interpreter error recovered ***
> Error: No symbol TGX11 in current scope  FILE: LINE:0
> Error: type TGX11 not defined FILE: LINE:0
> *** Interpreter error recovered ***
> Error: class,struct,union or type TGeometry not defined  FILE: LINE:0
> Error: No symbol TGeometry::Get("TRootGuiFactory") in current scope  FILE:
> LINE:0
> *** Interpreter error recovered ***
> Error: No symbol TRootGuiFactory in current scope  FILE: LINE:0
> Error: type TRootGuiFactory not defined FILE: LINE:0
> *** Interpreter error recovered ***
> 
>  *** Break *** segmentation violation
> 
> 
> Any suggestions?
> 
> Thanks,
> Julien.
> ----------------------++----------------------
> Julien Sylvestre
> email: julien@ligo.mit.edu
> phone: 617-253-7878
> URL: web.mit.edu/julien/www
> 



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