c++/5327: compliation question
Zack Weinberg
zack@codesourcery.com
Tue Jan 8 16:06:00 GMT 2002
The following reply was made to PR c++/5327; it has been noted by GNATS.
From: Zack Weinberg <zack@codesourcery.com>
To: jianhua.zhou@informix.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/5327: compliation question
Date: Tue, 8 Jan 2002 16:03:10 -0800
On Tue, Jan 08, 2002 at 11:22:23PM -0000, jianhua.zhou@informix.com wrote:
> main()
> {
> cout << hex << 123 << dec << endl;
> }
You have not included the appropriate header, and all the symbols you
are trying to use are in namespace std.
#include <iostream>
int
main()
{
std::cout << std::hex << 123 << std::dec << std::endl;
}
zw
More information about the Gcc-prs
mailing list