RE:Re: [CINT] [Fwd: [ROOT] string stream

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Thu Jan 24 2002 - 13:27:06 MET


Hello Sugaya-san,

I didn't look closely into this problem, but I have a feeling
that this is due to missing $ROOTSYS/cint/include/string.dll.
This shared library is an optional component of ROOT installation.
Please refer to ROOT installation documents for creating
precompiled STL container libraries. string.dll is one of them.
bstring.h is the interpreted version of STL string class. It
works for basic operation, but has problem if you do something
advanced. I recommend installing STL precompiled container libs.

Thank you
Masaharu Goto


>Hi rooters,
>Well, does this problem produced really only on my environment?
>This problem occurs on root Version 3.02/06  22 December 2001 also on
>my environment.
>
>root [0] #include <fstream>
>Warning: File "fstream" already loaded
>root [1] ifstream file("tmp.txt");
>root [2] string st;
>root [3] file >> st;
>Error: Symbol i is not defined in current scope  FILE:bstring.h LINE:2523
>Error: Failed to evaluate i.operatorvoidError: Binary operator oprand missing
 
FILE:bstring.h LINE:2523
>*** Interpreter error recovered ***
>root [4] char st2[100];
>root [5] file >> st2;
>root [6] cout << st2 << endl;
>ello
>
>



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