From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2905 invoked by alias); 7 Aug 2005 20:19:29 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 2887 invoked by uid 22791); 7 Aug 2005 20:19:25 -0000 Received: from server48.intldns.net (HELO 1501.intldns.net) (69.61.1.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 07 Aug 2005 20:19:25 +0000 Received: from s0106000d3a2c699c.cg.shawcable.net ([68.146.18.116] helo=[10.1.1.40]) by 1501.intldns.net with esmtpa (Exim 4.50) id 1E1rcA-0001ON-JS for gcc@gcc.gnu.org; Sun, 07 Aug 2005 16:19:22 -0400 Message-ID: <42F66CCB.6000806@degarrah.com> Date: Sun, 07 Aug 2005 20:19:00 -0000 From: Chris Garrett User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) MIME-Version: 1.0 To: gcc@gcc.gnu.org Subject: Re: GCC 4.0.1 - iostream: No such file or dir.... References: <1243.24.126.76.52.1123343363.squirrel@webmail3.pair.com> In-Reply-To: <1243.24.126.76.52.1123343363.squirrel@webmail3.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PopBeforeSMTPSenders: cgarrett,info@degarrah.com,support@degarrah.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - 1501.intldns.net X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - degarrah.com X-Source: X-Source-Args: X-Source-Dir: X-SW-Source: 2005-08/txt/msg00217.txt.bz2 dank@kegel.com wrote: >Chris Garrett wrote: > > >>main.cpp:5: error: 'cout' was not declared in this scope >> >> >This question should have been sent to gcc-help, not here. > > Sorry about this. What criteria is there for posting to gcc vs gcc-help? >But as long as I'm answering: > >It's std::cout now, according to the C++ standard. >If you want to compile old code that wasn't aware of std, >you can stick > using namespace std; >at the top. > > > Thanks for answering, I forgot to mention that I did try adding the namespace prefix and also the "using" statement and I get the same error. Thank you Chris