From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7759 invoked by alias); 21 Aug 2002 03:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7737 invoked by uid 71); 21 Aug 2002 03:06:00 -0000 Resent-Date: 21 Aug 2002 03:06:00 -0000 Resent-Message-ID: <20020821030600.7736.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bradshaw@mcs.anl.gov Received: (qmail 7639 invoked from network); 21 Aug 2002 03:04:44 -0000 Received: from unknown (HELO localhost.localdomain) (12.251.197.21) by sources.redhat.com with SMTP; 21 Aug 2002 03:04:44 -0000 Received: (from rick@localhost) by localhost.localdomain (8.11.6/8.11.6) id g7L2tWN00653; Tue, 20 Aug 2002 21:55:32 -0500 Message-Id: <200208210255.g7L2tWN00653@localhost.localdomain> Date: Tue, 20 Aug 2002 20:42:00 -0000 From: bradshaw@mcs.anl.gov To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7672: can't compile c++ files X-SW-Source: 2002-08/txt/msg00433.txt.bz2 List-Id: >Number: 7672 >Category: c++ >Synopsis: can't compile c++ files >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Aug 20 20:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.2 >Organization: >Environment: System: Linux jedi.prototype8.net 2.4.18-5 #1 Mon Jun 10 15:31:48 EDT 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ./configure --prefix=/home/rick/gcc-3.2 --with-threads=posix >Description: I write a simple hello world program with cout and include iostream and it doesn't compile and claims unknown identifier cout. #include int main() { cout << "hello WOrld" << endl; return 0; } gccbuildtest.cpp: In function `int main()': gccbuildtest.cpp:5: `cout' undeclared (first use this function) gccbuildtest.cpp:5: (Each undeclared identifier is reported only once for each function it appears in.) gccbuildtest.cpp:5: `endl' undeclared (first use this function) >How-To-Repeat: >Fix: I am not sure how to fix but I have seen this problem ever since gcc-3.1 >Release-Note: >Audit-Trail: >Unformatted: