bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ddd compile problems in strclass.C and PannedGE.C


From: Andreas Zeller
Subject: Re: ddd compile problems in strclass.C and PannedGE.C
Date: 30 Jul 2001 20:47:02 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)

Hi!

"Singleton, Larry, NNAD" <larrysingleton@att.com> writes:

> using: gcc-3.0, lesstif-0.92.32, xpm-3.4k, gtk+-1.2.10, glib-1.2.10, gdb-5.0
> I get the same problem on SCO_SV 3.2v5.0.5, and on SunOS 5.7
> 
> When compiling ddd (strclass.C) using the following:
> 
> c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem
> /usr/local/lib/X11R6.3/include    -DNDEBUG -O2 -g -W -Wall -trigraphs  -c
> strclass.C
> 
> I get this error message:
> 
> strclass.C:1441: no matching function for call to `std::basic_istream<char, 
>    std::char_traits<char> >::clear(int&)'
> /usr/local/include/g++-v3/bits/basic_ios.h:94: candidates are: void 
>    std::basic_ios<_CharT, _Traits>::clear(std::_Ios_Iostate = 
>    std::ios_base::goodbit) [with _CharT = char, _Traits = 
>    std::char_traits<char>]
> 
> The code segment is question is:
>     int new_state = s.rdstate();
>     if (i == 0)
>         new_state |= ios::failbit;
>     if (ch == EOF)
>         new_state |= ios::eofbit;
>     s.clear(new_state);
>     return s;
> 
> It complains about the above s.clear()

Thanks!  This will be fixed in the next DDD release.

-- 
Andreas Zeller          Universitaet des Saarlandes, Saarbruecken, Germany
                        http://www.st.cs.uni-sb.de/~zeller/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]