Header not recognized in ubuntu gcc compiler

I have installed gcc 4.6 on my linux ubuntu system . I want to write all my c++ program to compile on it . The problem I faced was for the 1st demo prog
iostream.h, no such file or directory , same for fstream.h. Can u guys help me out in fixing this .
Those headers are not standard
You should use
1
2
#include <iostream>
#include <fstream> 
closed account (zb0S216C)
Did you install the compiler? If not, in your terminal, enter: sudo apt-install build-essential
That line will give you MinGW's compiler.

Wazzak
@ne555 Thanks a lot guys . I have got solution for this . Now One more problem I am facing is I compiled my code with the following command g++ hello.cpp -o hello. The code was executed well and also an executable file was created . But the executable file hello is not being executed . It is showing error saying [i]command not found[/i]. What shall I do next.
Last edited on
Try ./hello
And, if you want to know why: http://en.wikipedia.org/wiki/PATH_%28variable%29
Thanks guys..
Topic archived. No new replies allowed.