public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how can cout be undeclared?
@ 2002-02-08 11:50 Kirk
  2002-02-08 13:41 ` Frank Geck
  2002-02-08 14:14 ` Kayvan A. Sylvan
  0 siblings, 2 replies; 4+ messages in thread
From: Kirk @ 2002-02-08 11:50 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-02-09  0:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-08 11:50 how can cout be undeclared? Kirk
2002-02-08 13:41 ` Frank Geck
2002-02-08 14:14 ` Kayvan A. Sylvan
2002-02-08 16:12   ` gnu C++ compilation problem Kallol Biswas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).