ddd
[Top][All Lists]
Advanced

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

Problem building ddd on cygwin


From: Fred Ma
Subject: Problem building ddd on cygwin
Date: Tue, 22 Apr 2003 23:34:04 -0400

Hi,

I should have sent this to the ddd mailing list.
When replying, could you please copy the two
newsgroups below, and address@hidden  Thanks.

Fred


-------- Original Message --------
Subject: Problem building ddd on cygwin
Date: Tue, 22 Apr 2003 18:36:52 -0400
From: Fred Ma <address@hidden>
Organization: Bell Sympatico
Newsgroups: gnu.gcc.help,comp.unix.programmer

Hello,

I've tried building the ddd on cygwin and got the same
message as before:

   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 = 
      std::char_traits<char>]'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 = 
      std::char_traits<char>]'

The context is:

  1435  #if HAVE_IOSTATE
  1436      ios::iostate new_state = s.rdstate();
  1437  #else
  1438      int new_state = s.rdstate();
  1439  #endif
  1440      if (i == 0)
  1441          new_state |= ios::failbit;
  1442      if (ch == EOF) 
  1443          new_state |= ios::eofbit;
  1444      s.clear(new_state);
  1445      return s;
  1446  }

This means ios::iostate is an int, and HAVE_IOSTATE
is not defined.  I recursively grepped all the files
in the include directories (from g++ -v):

   /usr/include/w32api
   /usr/include/c++/3.2
   /usr/include/c++/3.2/i686-pc-cygwin
   /usr/include/c++/3.2/backward
   /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
   /usr/include

There certainly is no ios::iostate, though there is
an ios_base::iostate (as predicted by Josutiss's
"The C++ Standard Library...").  To confirm that
this is the problem, I checked the output of ddd's
./configure step, and it says:

checking for ios::iostate... no

Is there a straightforward way to fix this?
I'm using cygwin 1.3.22-1, "DLL epoch" 19.
The g++ version that accompanies this cygwin
is 3.2 20020927 (prerelease).  The ddd is the
most recent ddd-3.3.1.  I have Xfree86 and
LessTif.

Thanks for any help.

Fred




reply via email to

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