help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting include path


From: red floyd
Subject: Re: Setting include path
Date: Tue, 17 Oct 2006 15:45:30 GMT
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Bernd Strieder wrote:
Sukumar  R wrote:
a.cpp: In function `int main()':
a.cpp:6: `cout' undeclared in namespace `std'
a.cpp:6: `endl' undeclared in namespace `std'

BTW iostream.h is deprecated. When found, it provides iostreams in the
global namespace, not in the std namespace. So using std::cout in your
code would have failed anyway. This can be said without seeing the
source.

No, iostream.h is not "deprecated". It was never part of the standard, therefore it can't be deprecated.

The OP should be using #include <iostream>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]