[Top][All Lists]

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

ddd 3.3.1 doesn't build with gcc 3.2.2?

From: M Shep
Subject: ddd 3.3.1 doesn't build with gcc 3.2.2?
Date: Tue, 26 Aug 2003 23:44:38 -0700 (PDT)


I can't get ddd 3.3.1 to compile under gcc 3.2.2.  My
system is an i686, the distro is redhat 9, kernel is

The build also aborts on a cygwin system (I don't have
the gcc version, that machine is at work) in exactly
the same place.

The issue is here:

istream& operator>>(istream& s, string& x)
    // lots of stuff deleted...
    if (ch == EOF) 
        new_state |= ios::eofbit;
    s.clear(new_state);  // invalid conversion
    return s;

The last few lines of output from the build are

Also attached is the ddd/config.h.

Any help would be appreciated.


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This 
file includes at least one deprecated or antiquated header. Please consider 
using one of the 32 headers found in section of the C++ standard. 
Examples include substituting the <X> header for the <X.h> header for C++ 
includes, or <sstream> instead of the deprecated header <strstream.h>. To 
disable this warning use -Wno-deprecated.
In file included from strclass.C:41:
strclass.h: In member function `string& string::operator=(std::ostrstream&)':
strclass.h:1059: warning: unused variable `const int frozen'
strclass.C: In function `std::istream& operator>>(std::istream&, string&)':
strclass.C:1443: invalid conversion from `int' to `std::_Ios_Iostate'
strclass.C:1443:   initializing argument 1 of `void std::basic_ios<_CharT, 
   _Traits>::clear(std::_Ios_Iostate) [with _CharT = char, _Traits = 
make[1]: *** [strclass.o] Error 1
make: *** [all-recursive] Error 1

Attachment: config.h
Description: config.h

reply via email to

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