Re: [ROOT] Root on Windows XP

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Nov 12 2002 - 13:04:55 MET


Hi Francesco,

some "old" Root scripts were designed to be executed once,
in particular scripts creating objects in the stack instead of the heap.
This was the case of basic3d.C. The current CVS version has a new version
of this script (in the attachement also). This version can be executed
as many times as you like, including when killing the generated canvas.

About iostream, we recommend adding the line:
#include <iostream>
in your rootlogon.C file to avoid the warning message.

Rene Brun


On Mon, 11 Nov 2002, Francesco S. Rinaldi wrote:

> Hello.
> I've downloaded Windows/NT/w2000 with VC++ 6.0, version 3.03/09b (built with
> InstallShield) file, and installed it on Windows XP.
> I've set the various Environment variables, but I've many problems with the
> CINT interpreter.
> For example, I saved the simple script (found in the user guide)
> {
> #include <iostream.h>
> 
>  cout << " Hello" << endl;
>  float x = 3.;
>  float y = 5.;
>  int i = 101;
>  cout <<" x = "<<x<<" y = "<<y<<" i = "<<i<< endl;
> }
> first time I execute it, it works, second time it works, but I receive the
> message:
> "Note: iostrem.h file is already open"
> Is it normal ?
> Moreover, if I run (for example) the script basic3d.C in the folder
> 'tutorials', first time it works, then, after I close the windows, second
> time it doesn't work, sending me the message:
> Error: C++ exception caught FILE:C:\root\tutorials\basic3d.C LINE 5
> Warning: Automatic variable c1 allocated in global scope
> FILE:C:\root\tutorials\basic3d.C LINE 6
> Error: Undeclared variable c1 FILE:C:\root\tutorials\basic3d.C LINE 6
> !!!Dictionary position not recovered because G__unloadfile() is used in the
> macro!!
> *** Interpreter error recovered ***
> 
> If I try again it works, and so on.
> Moreover,
> if I try the example about multi-line Commands, at page 21 of the User
> Guide, I get:
> Error: Symbol cout is not defined in current scope
> FILE:C\DOCUME~1\frengo\IMPOST~1\Temp\4 LINE:6
> Error: << Illegal operator for pointer 3
> FILE:C\DOCUME~1\frengo\IMPOST~1\Temp\4 LINE:6
> Error: << Illegal operator for pointer 3
> FILE:C\DOCUME~1\frengo\IMPOST~1\Temp\4 LINE:6
> Error: << Illegal operator for pointer 3
> FILE:C\DOCUME~1\frengo\IMPOST~1\Temp\4 LINE:6
> (const int)0
> *** Interpreter error recovered ***
> 
> 
> 
> Any suggestion ?
> Thanks in advance,
> Francesco
> 
> 
> 
> 





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