From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12809 invoked by alias); 8 Feb 2002 19:50:58 -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 12348 invoked from network); 8 Feb 2002 19:50:49 -0000 Received: from unknown (HELO mnmai05.mn.mediaone.net) (24.131.1.59) by sources.redhat.com with SMTP; 8 Feb 2002 19:50:49 -0000 Received: from truffula.localdomain (nic-118-c56-176.mn.mediaone.net [24.118.56.176]) by mnmai05.mn.mediaone.net (8.11.1/8.11.1) with SMTP id g18JpUb17634 for ; Fri, 8 Feb 2002 14:51:30 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: Kirk To: gcc-help@gcc.gnu.org Subject: how can cout be undeclared? Date: Fri, 08 Feb 2002 11:50:00 -0000 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02020813570506.01192@truffula.localdomain> Content-Transfer-Encoding: 8bit X-SW-Source: 2002-02/txt/msg00093.txt.bz2 I'm trying to a program ported from linux (redhat7.2 running gcc-2.96RH) to freebsd. I have installed gcc-3.0. Most of the compile time errors that I was getting while using gcc-2.95 on freebsd have disappeared now that I'm compiling with gcc-30. However, there is one that is perplexing me. It is: tveg.cpp: In member function `void TVeg::dayOut(TDay*)': tveg.cpp:428: `cout' undeclared (first use this function) tveg.cpp:428: (Each undeclared identifier is reported only once for each function it appears in.).... the whole error output is below. It is odd that a simple cout (which compiles fine on redhat's 2.96 version) is choking here. Any thoughts? Thanks in advance, Kirk su-2.05a$ make clean rm *.o *~ su-2.05a$ make pnet g++30 -c -ansi -g -Wall tday.cpp g++30 -c -ansi -g -Wall tveg.cpp tveg.cpp: In member function `void TVeg::dayOut(TDay*)': tveg.cpp:428: `cout' undeclared (first use this function) tveg.cpp:428: (Each undeclared identifier is reported only once for each function it appears in.) tveg.cpp: In method `void TVeg::yearOutCN(TDay*)': tveg.cpp:464: warning: unused variable `double folC' tveg.cpp:465: warning: unused variable `double totalN' tveg.cpp:466: warning: unused variable `double totalM' tveg.cpp: In method `void TVeg::understory(TDay*)': tveg.cpp:478: warning: unused variable `double mossResp' tveg.cpp:481: warning: unused variable `double growthResp' *** Error code 1