From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7556 invoked by alias); 25 Oct 2002 16:11:38 -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 7507 invoked from network); 25 Oct 2002 16:11:35 -0000 Received: from unknown (HELO tigress.cdcgy.com) (209.167.52.146) by sources.redhat.com with SMTP; 25 Oct 2002 16:11:35 -0000 Received: from mail.cdcgy.com by tigress.cdcgy.com via smtpd (for sources.redhat.com [209.249.29.67]) with SMTP; 25 Oct 2002 16:11:35 UT Received: by CSDNT99.cdcgy.com with Internet Mail Service (5.5.2653.19) id ; Fri, 25 Oct 2002 10:10:21 -0600 Message-ID: <83E3831A88E65844B01DB1A73FB66F93023BBBA6@CSDNT99.cdcgy.com> From: "Jessee, Mark" To: "'gcc-help@gcc.gnu.org'" Subject: Problems with stringstream Date: Fri, 25 Oct 2002 09:11:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-10/txt/msg00322.txt.bz2 Hi, I'm trying to build the following program using gcc 3.0.3. It compiles okay but when it runs there is no output. When I compile and run on MS Visual C++ the output is "Sample string" as expected. I did a quick check of the FAQ for this topic but couldn't find any information. Any suggestions are appreciated! #include #include #include using namespace std; int main () { stringstream oss; string mystr; oss << "Sample string"; mystr=oss.str(); cout << mystr; return 0; } Thanks, Mark