1. Home >
  2. Apps >
  3. Groups >

C++ on uBuntu : fatal error:library iostream.h not found

Question asked by madhuri thalluri in #Gadgets on Apr 26, 2014
madhuri thalluri
madhuri thalluri · Apr 26, 2014
Rank D3 - MASTER
hi...when i write a simple hello c++ program and executed in ubuntu13.0 its showing fatal error:library iostream.h not found like dat..wen i tried to install g++compiler using apt get command its showing something like these packages are not existed..now what should i do???i want to execute c++ programs???can anyone tell what is the problem nd what i should do for it?? Posted in: #Gadgets
Abhishek Rawal
Abhishek Rawal · Apr 26, 2014
Rank A2 - PRO
That's because GNU GCC-C++ (aka g++) doesn't accept "iostream.h" syntax.
Just use
madhuri thalluri
madhuri thalluri · Apr 27, 2014
Rank D3 - MASTER
Abhishek Rawal
That's because GNU GCC-C++ (aka g++) doesn't accept "iostream.h" syntax.
Just use
sryy abhishek...i tried it..but its showing error that "cout is not in the scope of int main()"...
Abhishek Rawal
Abhishek Rawal · Apr 27, 2014
Rank A2 - PRO
madhuri thalluri
sryy abhishek...i tried it..but its showing error that "cout is not in the scope of int main()"...
add this line
using namespace std;
below [HASHTAG]#include[/HASHTAG]

It should look something like
#include 
using namespace std;

int main()
{
cout << "CrazyEngineers";
}
If this too fails, then you might've made some mistake in installing compiler.
Re-installing libstdc++-dev and g++-multilib can fix it.

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up