From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8103 invoked by alias); 17 Jan 2002 12:40:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8033 invoked from network); 17 Jan 2002 12:40:45 -0000 Received: from unknown (HELO cormrw2.cgey.com) (193.234.247.51) by sources.redhat.com with SMTP; 17 Jan 2002 12:40:45 -0000 Received: from mailsweeper.capgemini.se (mailsweeper.capgemini.se [192.176.203.17]) by cormrw2.cgey.com (8.11.3/8.11.3) with ESMTP id g0HCeV895592 for ; Thu, 17 Jan 2002 13:40:31 +0100 (CET) (envelope-from sten.hultman@capgemini.se) Received: from master01.capgemini.se (unverified) by mailsweeper.capgemini.se (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Thu, 17 Jan 2002 13:37:44 +0100 Received: by master01.capgemini.se with Internet Mail Service (5.5.2653.19) id ; Thu, 17 Jan 2002 13:40:53 +0100 Message-ID: From: "Hultman, Sten" To: "'gcc-help@gcc.gnu.org'" Subject: What is missing to get this compiled ? Date: Thu, 17 Jan 2002 04:40:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-01/txt/msg00176.txt.bz2 This sort program compiles with no problem with gcc2.95.2 on HP-UX10.20: #include 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 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 >::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] /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] 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.