help-gplusplus
[Top][All Lists]
Advanced

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

trouble including "iostream" "fstream"


From: NewToGNU
Subject: trouble including "iostream" "fstream"
Date: 10 Apr 2006 15:08:34 -0700
User-agent: G2/0.2

I am having some trouble including "iostream" "fstream" to my code.

I tried the following ways and base times it did not work. What is the
problem?

test.cc:
=======
....
#include <iostream.h>
#include <fstream.h>
.....

>g++ test.cc

test.cc:8: iostream.h: No such file or directory
test.cc:9: fstream.h: No such file or directory

>gcc test.cc

test.cc:8: iostream.h: No such file or directory
test.cc:9: fstream.h: No such file or directory

 test.cc:
=======
....
#include <iostream>
#include <fstream>
using namespace std;
using std::cout;
.....
....

>g++ test.cc

test.cc:8: iostream: No such file or directory
test.cc:9: fstream: No such file or directory

>gcc test.cc

test.cc:8: iostream: No such file or directory
test.cc:9: fstream: No such file or directory



reply via email to

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