Re: strange behaviour of gcc 4.0.2
- From: David W Noon <dwnoon@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 26 Feb 2006 14:19:35 GMT
On Sunday 26 Feb 2006 11:35 in article
<184302tg2ip7bdhn1nhci5velu4u8lbqmi@xxxxxxx> of
comp.os.linux.development.apps, Michael.Ruehling@xxxxxxxxxxx wrote:
at least i was ready to attack some program which is to be done
since December. So i started typing some files and tried to compiler
them. And guess what, my compiler told me that he does not know
anything about cout/cin/cerr and all that stuff concerning
StreamIO. Is this correct and when yes, why? It seems part of
C++ standard lib.
You did incorporate namespace "std" in some way, didn't you?
Either:
#include <iostream>
using namespace std;
. . .
cout << "Hello, World!\n";
Or:
#include <iostream>
. . .
std::cout << "Hello, World!\n";
P.S.: coded so far on WinNT
Ah! Microsplat's compilers don't always follow ISO/ANSI standards, so
what counts as C++ on Winslug isn't necessarily C++ in the rest of the
world.
--
Regards
Dave [RLU#314465]
======================================================
dwnoon@xxxxxxxxxxxxxxxxxxxxx (David W Noon)
Remove spam trap to reply via e-mail.
======================================================
.
- References:
- strange behaviour of gcc 4.0.2
- From: Michael . Ruehling
- strange behaviour of gcc 4.0.2
- Prev by Date: Re: strange behaviour of gcc 4.0.2
- Next by Date: Re: strange behaviour of gcc 4.0.2
- Previous by thread: Re: strange behaviour of gcc 4.0.2
- Next by thread: Re: strange behaviour of gcc 4.0.2
- Index(es):
Relevant Pages
|