Re: GCC 4 and iostream.h
Re: GCC 4 and iostream.h
- Subject: Re: GCC 4 and iostream.h
- From: "James Larcombe" <email@hidden>
- Date: Wed, 14 Dec 2005 14:02:38 -0000
Stephane Sudre wrote:
#include <iostream>
...
cout << "<(" << stringFromClass() << " *) "<< this << " [" <<
retainCount_ << "]>\n";
=>
error: `cout' undeclared (first use this function)
Works fine with "iostream.h".
I think that's because <iostream> puts everything inside namespace
'std', whereas the old headers such as "iostream.h" use the global
namespace.
Try std::cout instead - that should work. Alternatively, you could
use a 'using' directive.
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden