Can't compile c++ programs on OPENSUSE
Hi der
the foll. pgm of mine is not getting compiled
#include<iostream>
int main()
{
cout<<"Hi\n";
}//Saved as g.cpp
The foll. error is shown on compiling as c++ g.cpp or gcc c.cpp or cc g.cpp
and i've gcc 4.5
g.cpp: In function ‘int main()’:
g.cpp:5:2: error: ‘cout’ was not declared in this scope
v
|