Re: [Cooker] g++ Error?

2002-10-21 Thread Yura Gusev
Matthew C. Tedder said:

 Why does g++ tell me that the iostream.h header has been depricated?


#include iostream
int main()
{
   std::cout  Hello world  std::endl;
   return 0;
}

or

#include iostream
using std;
int main()
{
   cout  Hello world  endl;
   return 0;
}


It is now in C99 standard.






Re: [Cooker] g++ Error?

2002-10-21 Thread Malte Starostik
On Tuesday 22 October 2002 02:22, Yura Gusev wrote:
 Matthew C. Tedder said:
  Why does g++ tell me that the iostream.h header has been depricated?

 #include iostream
 int main()
 {
std::cout  Hello world  std::endl;
return 0;
 }

 or

 #include iostream
 using std;
 int main()
 {
cout  Hello world  endl;
return 0;
 }


 It is now in C99 standard.
That would really surprise me that C99 now includes C++ :-)
It's part of ISO/IEC 14882 though, the C++ Standard as of 1998.
-Malte




Re: [Cooker] g++ Error?

2002-10-18 Thread Eyal Ben-David
On Friday 18 October 2002 21:05, Matthew C. Tedder wrote:
 Why does g++ tell me that the iostream.h header has been depricated?

 You've got to be joking, if this is true..  Is this a bug?  If the only
 header I include is iostream.h, I get this warning message:

 /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
 This file includes at least one deprecated or antiquated header. Please
 consider using one of the 32 headers found in section 17.4.1.2 of the C++
 standard. Examples include substituting the X header for the X.h header
 for C++ includes, or sstream instead of the deprecated header
 strstream.h. To disable this warning use -Wno-deprecated.

 Trying to locate this in the ISO standard PDF file is also difficult--why
 has no one implemented a find feature in Mandrake's default PDF viewer?!

 Matthew

That's because it's not standard!
The standard says that the header should be iostream
(Actually all C++ standard headers are H-less, except for ISO C header files)

G++ tells you here that it is not standard, it will accept and compile it but 
there is no guarantee that other compiler would.

This is not a Mandrake issue at all - it's the default behavior of g++

Eyal




Re: [Cooker] g++ Error?

2002-10-18 Thread Guillaume Cottenceau
Matthew C. Tedder [EMAIL PROTECTED] writes:

 Why does g++ tell me that the iostream.h header has been depricated?
 
 You've got to be joking, if this is true..  Is this a bug?  If the only header 
 I include is iostream.h, I get this warning message:
 
 /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This 
 file includes at least one deprecated or antiquated header. Please consider 
 using one of the 32 headers found in section 17.4.1.2 of the C++ standard. 
 Examples include substituting the X header for the X.h header for C++ 
 includes, or sstream instead of the deprecated header strstream.h. To 
 disable this warning use -Wno-deprecated.

Well it's pretty clear, it tells you to substitute iostream.h
with iostream -- have you tried that?


-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/




[Cooker] g++ Error?

2002-10-18 Thread Matthew C. Tedder

Why does g++ tell me that the iostream.h header has been depricated?

You've got to be joking, if this is true..  Is this a bug?  If the only header 
I include is iostream.h, I get this warning message:

/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This 
file includes at least one deprecated or antiquated header. Please consider 
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. 
Examples include substituting the X header for the X.h header for C++ 
includes, or sstream instead of the deprecated header strstream.h. To 
disable this warning use -Wno-deprecated.

Trying to locate this in the ISO standard PDF file is also difficult--why has 
no one implemented a find feature in Mandrake's default PDF viewer?!

Matthew