Compiling C++ Source code?iostream.h not found?
Posted
by
gabriel
on Ask Ubuntu
See other posts from Ask Ubuntu
or by gabriel
Published on 2012-05-03T13:44:17Z
Indexed on
2012/09/26
15:50 UTC
Read the original article
Hit count: 452
I do not want to discuss about C++ or any programming language!I just want to know what am i doing wrong with linux ubuntu about compiling helloworld.cpp!
I am learning C++ so my steps are:
open hello.cpp in vim and write this
#include <iostream.h>
int main()
{
cout << "Hello World!\n";`
return 0;
}
So, after that i tried in the terminal this
g++ hello.cpp
AND the output is
hello.cpp:1:22: fatal error: iostream.h: No such file or directory
compilation terminated.
What do you suggest? Any useful step by step guide for me?Thanks!
© Ask Ubuntu or respective owner