Re: [Dev-C++] iostream "without" cout
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <h.r...@gm...> - 2002-09-09 17:03:03
|
> 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. BTW: there is a mingw 2.2.2-3. greetings Horst -- Horst Rößner Postf. 1802 52205 Stolberg ICQ ID #74808448 h.r...@gm... h.g...@t-... GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |