Hi All,
I have just attempted to build root with gcc-3.3 on a Sun workstation
(E450) running Solaris 8. The build seems to go without any trouble and
root works more or less, except that any attempt to use the ">>" or
"<<" operator with cin, cout and cerr fails as follows:
root [0] cout <<"Hi there" << endl;
Error: operator- not defined for basic_ostream<char,char_traits<char> >
FILE:(tmpfile) LINE:1
I can use cin.getline(), printf and fstreams, e.g.
root [1] char xxx[100]
root [2] cin.getline(xxx,100)
abcdefghijlk
(basic_istream<char,char_traits<char> >::__istream_type)(-35132416)
root [3] printf("%s",xxx)
abcdefghijlk(const int)12
but:
root [4] cin >> xxx
Error: operator- not defined for basic_istream<char,char_traits<char> >
FILE:(tmpfile) LINE:1
*** Interpreter error recovered ***
I seem to recall seeing a similar problem in rootalk, but I can't find it
now. Can anyone suggest how I might start to tackle this problem?
Thanks in advance,
John
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET