bug-ddd
[Top][All Lists]
Advanced

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

ddd 3.3 strclass.C compiling problem.


From: R. Clayton
Subject: ddd 3.3 strclass.C compiling problem.
Date: Mon, 28 Oct 2002 12:14:06 -0500 (EST)

  ro uname -a
  Linux rockhopper 2.4.18-5smp #1 SMP Mon Jun 10 15:19:40 EDT 2002 i686 unknown

  ro g++ -v
  Reading specs from /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
  Configured with: ./configure --prefix=/usr/local/stow/gcc-3.2
  Thread model: posix
  gcc version 3.2

  ro make

  [much chatter deleted]

  c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/X11R6/include -DNDEBUG
  -O2 -g -W -Wall -trigraphs  -c strclass.C

  [much chatter deleted]

  strclass.C: In function `std::istream& operator>>(std::istream&, string&)':
  strclass.C:1439: invalid conversion from `int' to `std::_Ios_Iostate'
  strclass.C:1439:   initializing argument 1 of `void std::basic_ios<_CharT,
     _Traits>::clear(std::_Ios_Iostate) [with _CharT = char, _Traits =
     std::char_traits<char>]'
  gmake[1]: *** [strclass.o] Error 1
  gmake[1]: Leaving directory `/export/home/uf/rclayton/local/src/ddd-3.3/ddd'
  gmake: *** [all-recursive] Error 1

  ro 

I fixed this by changing

  int new_state = s.rdstate();

to

  ios::iostate new_state = s.rdstate();

near the line indicated in the c++ error report.




reply via email to

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