> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of h.r...@gm...
> Sent: Monday, September 09, 2002 8:03 PM
> To: Dev...@li...
> Subject: Re: [Dev-C++] iostream "without" cout
>
>
> > I instaled Dev 4.9.5.0 executable with MinGW 2.0.0-2, and
> in a project
> > with seven files, all of them include <iostream>, in one of
> them it says
> > cout and endl undeclared, and iostream is included (?).
> Directories are
> > well inserted. If I change <iostream> with <iostream.h>
> then it works (I
> > add all include directories, the backward too).
> > What can cause that?
> >
>
> have you declared using std:cout or using namespace std ?.
> cout with <iostream> is in namespace std and cout with
> <iostream.h> is in
> global namespace.
<iostream.h> is not a valid ANSI C++ standard library header file. The
.h extension can be used for the C-subset header files only, but the
equivalents <cxxxx> should be prefered.
>
> BTW: there is a mingw 2.2.2-3.
2.0.0-3
The 2.0.0-3 contains the make utility which they had forgotten to
include in 2.0.0-2. If someone has the 2.0.0-2 and needs the make
utility he can download it separately and extract the archive inside
\mingw\bin directory.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|