[Ilugc] stream.h and fstream.h NOT FOUND problem

  • From: trshash84@xxxxxxxxx (Shashwath T.R.)
  • Date: Mon Jun 8 17:51:40 2009

On Sun, Jun 7, 2009 at 9:42 AM, bala chandar<balachandarlinks@xxxxxxxxx> wrote:

Hai,
I recently installed Ubuntu 8.10.Actually I need g++ for my project.So
I installed it through synaptic.I installed g++,g++ 4.1,g++4.2,g++ 4.3
all shown in synaptic.
But when i compile my project it says,
stream.h - No Such File or Directory Found
fstream.h - No Such File or Directory Found

I m really in need of these headers.Pls help me to get rid of it
soon.Thank you....
cheers.....

In the more modern C++ systems, you don't include fstream.h or
iostream.h; the correct form is:

#include <fstream>

using namespace std;

I think gcc and friends will yell at you if you don't follow this.

Regards,
Shash

Other related posts: