1

Possible Duplicate:
Where to get iostream.h

I am trying to compile the AVL tree example here. But when I typed make it says fatal error: iostream.h: no such file. I think the code is implemented using c library since it ended with .h but why couldn't it find this file? Is it depreciated?

Community
  • 1
  • 1
Mark
  • 8,408
  • 15
  • 57
  • 81

3 Answers3

5

Try #include <iostream> instead.

  • I wonder is just changing the name would suffice. Do they both have the same implementation? One is std so I would have to resolve the namespaces first. – Mark Sep 07 '11 at 18:20
2

In the new compiler, you do not need .h suffix use below instead.

#include <iostream>
TheTechGuy
  • 16,560
  • 16
  • 115
  • 136
0

Yes, it is deprecated. STL file names have no extension, so you should write #include <iostream> instead.