Hello Rene and Isard I think $ROOTSYS/cint/stl/string.dll is missing in your installation. With string.dll, operator+ is properly supported. For interpreted version, string class is supported in $ROOTSYS/cint/stl/bstring.h. There is one problem with operator+ which is easy to fix. Comment out typedef in bstring.h line 2406. Then things should work fine. Thank you Masaharu Goto >Date: Sun, 14 Jan 2001 16:26:27 +0100 (MET) >From: Rene Brun <brun@pcbrun.cern.ch> >To: MXJ02154@nifty.ne.jp >Subject: [ROOT] string (fwd) > >Hi Masa, >This was a message to roottalk. >Rene > >---------- Forwarded message ---------- >Date: Sun, 14 Jan 2001 00:11:39 -0600 (CST) >From: Isard_Dunietz <dunietz@fnal.gov> >To: roottalk@pcroot.cern.ch >Subject: [ROOT] string > >Dear Rene, > > When I use the interpreter, i.e. > >root [14] string s1("str1"); >root [15] string s2("str2"); >root [16] string s3( s1 + s2 ); >Error: operator+ not defined for >basic_string<char,char_traits<char>,allocator<char> > >FILE:/tmp/02804qaa_cint LINE:1 >*** Interpreter error recovered *** >root [17] > >Therefore the string class of root is not the same as in the standard C++ >library. Where can I find the definition of the root defined >class: string? Can one append with it? > Thank you, Isi Dunietz >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:33 MET