This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with new "17.4.1.2" headers
- From: Phil Edwards <phil at jaj dot com>
- To: Brian Nelson <bnelson at cis dot ysu dot edu>
- Cc: gcc-bugs at gcc dot gnu dot org, jensmh at gmx dot de
- Date: Fri, 21 Feb 2003 12:01:54 -0500
- Subject: Re: Problems with new "17.4.1.2" headers
- References: <E18mFW4-0002dT-00@frodo.cis.ysu.edu>
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