[ROOT] cout << string ?

From: Troy Straszheim (troy@ifh.de)
Date: Mon Feb 23 2004 - 22:25:43 MET


Hi roottalk --

I have verified that this works on another machine here, but for some
reason it is not working on mine.  I'm wondering if somebody can give me a
hint on where to start trying to track this down:

root [0] #include <string>
root [1] string s = "foo";
root [2] cout << s
Error: operator<< not defined for basic_ostream<char,char_traits<char> >
FILE:(tmpfile) LINE:1

This appears to be related to other errors where the interpreter is unable
to convert a string literal ("foo") to a const string&.

This is with root 3.10.02, have tried with gcc-3.2.3 and gcc-3.3.2-r5.

Thanks in advance,

Troy Straszheim



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET