View Feed
group-icon
Gadget Geeks
Discuss all electronic gadgets - ask questions, doubts, troubleshooting tips et al. to fellow gadget geeks.
645 Members
Join this group to post and comment.

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

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??
Abhishek Rawal
Abhishek Rawal • Apr 26, 2014
That's because GNU GCC-C++ (aka g++) doesn't accept "iostream.h" syntax.
Just use
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
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.

Share this content on your social channels -