This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with new "17.4.1.2" headers


On Fri, Feb 21, 2003 at 10:55:13AM -0500, Brian Nelson wrote:
> >Brian Nelson writes:
> >
> >> I create a generic hello world program, with #include <iostream> and a cout
> >> command, and when i compile, I get :
> >>
> >> hello.cc: In function `int main()':
> >> hello.cc:5: `cout' undeclared (first use this function)
> >
> >you could try std::cout.
> 
> There are lots of ways around it, I was just pointing it out as either a bug or 
> some other problem with a solaris build.

There's nothing to get "around".  That's how the language works.  The bug
is in your code.

Since you apparently have a copy of the standard to reference 17.4.1.2,
I suggest you give 17.4.1.1 a look.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]