Re: Dejagnu check error

Gabriel Dos Reis <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.bugs
Organization Integrable Solutions
Message-ID <[email protected]>
Mike Cleary <[email protected]> writes:

| /mnt/u9/toolchain/buildsys/install/alpha9/basic/native/toolchain/include/c++/3.3/streambuf: 
| In
|   function `int main(int, char**)':
| /mnt/u9/toolchain/buildsys/install/alpha9/basic/native/toolchain/include/c++/3.3/streambuf:416: 
| error: `
|   std::basic_streambuf<_CharT, _Traits>* std::basic_streambuf<_CharT,
|   _Traits>::setbuf(_CharT*, long int) [with _CharT = char, _Traits =
|   std::char_traits<char>]' is protected
| /mnt/u9/toolchain/buildsys/source/toolchain/dejagnu/testsuite/libdejagnu/unit.cc:56: 

Hi Rob,

  I intended to post a patch for this very problem (and other issues)
but didn't have the time.  With the standard C++ conformant library
(GCC-3.x), std::streambuf::setbuf() is publically inaccessible. 
Rather, the right function to call is 

   std::streambuf::psetbuf()
                   ^

note the "p" at the beginning.

Hope that helps,

-- Gaby
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.