This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
What is missing to get this compiled ?
- From: "Hultman, Sten" <sten dot hultman at cgey dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Jan 2002 13:40:47 +0100
- Subject: What is missing to get this compiled ?
This sort program compiles with no problem with gcc2.95.2 on HP-UX10.20:
#include <iostream.h>
class isockstream: public istream {
public:
isockstream (): ios (0) {}
isockstream(streambuf* sb): ios (sb) {}
};
On HP-UX11.00 with gcc3.0.2 I get the following errors.
Could someone please tell me what to include to get it working in the new
environment:
#include <iostream>
using namespace std;
class isockstream: public istream {
public:
isockstream (): ios (0) {}
isockstream(streambuf* sb): ios (sb) {}
};
sstream.h: In constructor `isockstream::isockstream()':
sstream.h:6: no matching function for call to `std::basic_istream<char,
std::char_traits<char> >::basic_istream()'
/usr/local/include/g++-v3/bits/std_istream.h:209: candidates are:
std::basic_istream<_CharT, _Traits>::basic_istream(const
std::basic_istream<_CharT, _Traits>&)
[with _CharT = char, _Traits = std::char_traits<char>]
/usr/local/include/g++-v3/bits/std_istream.h:72:
std::basic_istream<_CharT,
_Traits>::basic_istream(std::basic_streambuf<_CharT, _Traits>*)
[with _CharT = char, _Traits = std::char_traits<char>]
This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.