On Mon, Feb 03, 2003 at 08:28:49PM +0000, Paul wrote:

> [paul@localhost paul]$ g++ test.cpp
> test.cpp: In function `int main()':
> test.cpp:25: `cout' undeclared (first use this function)
> test.cpp:25: (Each undeclared identifier is reported only once for each 
> function it appears in.)
> test.cpp:25: `endl' undeclared (first use this function)

Try using std::cout and std::endl, as the C++ standard dictates that
they should be in the std:: namespace.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to