streambuf compilation problem

Craig Rodrigues rodrigc@mediaone.net
Sat Feb 10 13:26:00 GMT 2001


Hi,

I am using:
% g++ -v
Reading specs from /usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/2.97/specs
Configured with: ../configure --prefix=/tmp/gcc-20010210-root/usr/local --enable-shared --enable-threads --disable-checking i386-pc-linux-gnu : (reconfigured)
gcc version 2.97 20010210 (experimental)

under Redhat Linux 7.0.

The attached test program fails compilation with the following error:

a.cc:7: conflicting return type specified for `virtual int mybuf::underflow()'
/usr/local/include/g++-v3/bits/std_streambuf.h:475:   overriding `typename
   _Traits::int_type std::basic_streambuf<_CharT, _Traits>::underflow() [with
   _CharT = char, _Traits = std::char_traits<char>]'                         


Is this a problem in libstdc++?
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          


More information about the Libstdc++ mailing list