From Paolo.Ammann@isburg.ch Tue Jan 09 04:33:05 2001
Received: from hope.isburg.ch ([193.5.168.6] helo=zid)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14Fv9M-0005NS-00
	for <bug-commoncpp@gnu.org>; Tue, 09 Jan 2001 04:33:05 -0500
Received: from hope.isburg.ch [172.16.0.31] by zid [127.0.0.1] with SMTP (MDaemon.v2.7.SP4.R) for <bug-commoncpp@gnu.org>; Tue, 09 Jan 2001 10:49:02 +0100
Received: from DO_ISB-Message_Server by hope.isburg.ch
	with Novell_GroupWise; Tue, 09 Jan 2001 10:31:05 +0100
Message-Id: <sa5ae869.076@hope.isburg.ch>
X-Mailer: Novell GroupWise 5.5.2
Date: Tue, 09 Jan 2001 10:30:52 +0100
From: "Paolo Ammann" <Paolo.Ammann@isburg.ch>
To: <bug-commoncpp@gnu.org>
Subject: Compile error on Windows NT4 SP 6 with Visual C++ 6.0
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
X-MDaemon-Deliver-To: bug-commoncpp@gnu.org
X-Return-Path: Paolo.Ammann@isburg.ch
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi

I downloaded CommonC++ ver. 1.3.0 rel.3 today (5.1.2000).

I compiled CommonC++ on Windows NT 4 ServicePack 6, with Visual C++ 6.0.

And I got the following error:

<<
d:\ammann\commonc++-1.3.0\win32\socket.h(759) : error C2059: Syntaxfehler =
: ')'
d:\ammann\commonc++-1.3.0\win32\peer.cpp(47) : error C2511: 'UDPTransmit::U=
DPTransmit' : =DCberladene Member-Funktion=20
'void (const class InetAddress &,unsigned short)' nicht in 'UDPTransmit' =
gefunden
        d:\ammann\commonc++-1.3.0\win32\socket.h(662) : Siehe Deklaration =
von 'UDPTransmit'
<<

It loks like there is a ")" too much in:

socket.h
<<
inline void endReceiver(void)
  {Socket::endSocket());};
<<

and there is a difference between the definition and the implementation of =
the constructor for the class:
UDPTransmit, and UDPDuplex.

socket.h
UDPTransmit(const InetAddress &bind, tpport_t port, tpport_t);
peer.cpp
UDPTransmit::UDPTransmit(const InetAddress &ia, tpport_t port)

socket.h
UDPDuplex(const InetAddress &bind, tpport_t send, tpport_t recv);
peer.cpp
UDPDuplex::UDPDuplex(const InetAddress &bind, tpport_t port)

I apologize for my bad English.

Best regards,
        Ammann Paolo




From Alexander.Kuchler@pruftechnik.com Fri Jan 26 08:35:48 2001
Received: from ns3.mediatech.de ([195.126.209.23])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14M92a-000063-00
	for <bug-commoncpp@gnu.org>; Fri, 26 Jan 2001 08:35:48 -0500
Received: from pruftechnik.com (dialup084.mediatech.de [195.126.209.84])
	by ns3.mediatech.de (8.9.3/8.9.3) with ESMTP id OAA31114
	for <bug-commoncpp@gnu.org>; Fri, 26 Jan 2001 14:35:44 +0100
From: Alexander.Kuchler@pruftechnik.com
Received: from db_notes.pruftechnik.com (db_notes [172.17.1.40])
	by pruftechnik.com (8.9.1a/8.9.3) with ESMTP id OAA22127
	for <bug-commoncpp@gnu.org>; Fri, 26 Jan 2001 14:28:11 +0100
To: bug-commoncpp@gnu.org
Subject: cout-bug?
X-Mailer: Lotus Notes Release 5.0.4a  July 24, 2000
Message-ID: <OF29C41784.C84B7C66-ONC12569E0.003EFB3C@pruftechnik.com>
Date: Fri, 26 Jan 2001 14:18:45 +0100
X-MIMETrack: Serialize by Router on dhub01/pruftechnik(Release 5.0.5 |September 22, 2000) at
 26.01.2001 14:18:44,
	Serialize complete at 26.01.2001 14:18:44
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I'm using gcc 2.95.2 and
I got the following problem:

#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

int main(){
        string x="Hello";
        cout.setf(ios::right);
        cout << setw(20) << x;
 
        cout << endl;

        cout.setf(ios::right); 
        cout << setw(20) << "Hello";
        return(0);
}


the output is:

Hello
                        Hello

I this a bug or a feature?!
Why there are not the same results?
I tried out a few combinations with \0-termination, too. Without any 
effects!

I would be grateful for any tip, what I do wrong or any bugfix!



