Re: [ROOT] Problems using Root 3.03/06 under Windows

From: Marcos (Marcos.Gimenez@ific.uv.es)
Date: Mon Jul 01 2002 - 11:00:04 MEST


Hello again.

Thank you Philippe, your advice solved my problem, even being not exactly my
case (i got the compiling error without reseting global Root, and without
including iostream).

But now i have another problem, I'm getting "Error SelectPalette for Pixmap-0"
and "Error SelectPalette for Pixmap-87" when i draw a Canvas, but the programs
work fine ,though. I mean that the errors appear in rootcint during the
execution of the programs, without stoping them.

So your help will be appreciated :)

And as i said above, thank you for your help.

Philippe Canal wrote:

> Hi,
>
> In the current release on Windows, the iostream in not load by default.
>
> In particular this means that if you do something like
>         ...
>         #include <iostream>
>         ...
>         gROOT->Reset();
>
> the iostream symbol are unloaded.  To work around this situation you need to
> execute at the begining of you ROOT session (a rootlogon.C would be a good
> place for that).
>
>         #include <iostream>
>         gROOT->SaveContext(); // Indicate to Reset to return to THIS point.
>
> Cheers,
> Philippe
>
> PS.  We tried once to load iostream by default on Windows by had to remove
> it because of some bad side effect.  Does anybody remember the details?
>
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Marcos
> Sent: Friday, June 28, 2002 4:42 AM
> To: ROOTTalk
> Subject: [ROOT] Problems using Root 3.03/06 under Windows
>
> After i run rootcint interpreter and i execute ANY script by using .X
> "filename" it gives me an error:
> "Error: class,struct,union or type ios not defined
> FILE:c:\root\cint\include\iostream.h LINE:26"
>
> This happens the second time that i run it, the first time it seems to
> work but not like in version 3.03/05 (i've got some errors when i call a
> normal Canvas) below is an example (" a.C file does nothing, just
> multiplies 2 numbers")
> root [0] .X a.C  (it works)
> root [1] .U a.C
> root [2] .X a.C (now doesn't work anymore :( )
> Error: class,struct,union or type ios not defined
> FILE:c:\root\cint\include\iostream.h LINE:26
> *** Interpreter error recovered ***
> root [3] .X a.C
> Error: class,struct,union or type ios not defined
> FILE:c:\root\cint\include\iostream.h LINE:26
> *** Interpreter error recovered ***
> root [4] .U a.C
> Error: G__unloadfile() File "C:\root\bin\a.C" not loaded  FILE: LINE:0
> *** Interpreter error recovered ***
> root [5] .X a.C
> Error: class,struct,union or type ios not defined
> FILE:c:\root\cint\include\iostream.h LINE:26
>
> But i want to say that i have seen this error appearing in my windows
> interpreter in previous 3.03 ROOT Windows98SE version
> (on Linux i use a 3.02 version so i can't compare both versions) but it
> appeared randomly and after re-executing the .X command
> no error was found.
>
> By the way, i get the error even if i don't include iostream.h .



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