Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > trouble including "iostream" "fstream"

Reply
Thread Tools

trouble including "iostream" "fstream"

 
 
NewToCPP
Guest
Posts: n/a
 
      01-17-2006
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.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

 
Reply With Quote
 
 
 
 
NewToCPP
Guest
Posts: n/a
 
      01-17-2006
cut and past problem... The second scenario is as below:
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 With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      01-17-2006
NewToCPP wrote:
> cut and past problem... The second scenario is as below:
> 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
>


This is OT. Your installation is apparently defective. Ask for help
in gnu.g++.help.

V
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: trouble including css into the html Adrienne Boswell HTML 0 05-10-2010 01:52 PM
Re: trouble including css into the html Beauregard T. Shagnasty HTML 0 05-10-2010 01:17 PM
i have no trouble to send , ihave trouble reciving mail --any ideas John Penney Computer Support 4 08-29-2006 08:45 PM
Trouble including Python.h Marcelo Gosling Python 5 06-24-2006 05:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments