Error compiling C++ using GCC under Linux:
#include< iostream>
int main()
{
cout < < “Hello World!” < < endl;
return 0;
}
compiler error:
$g++ s.> s.bbpp: In function ‘int main(int, char**)’:
The
#include< iostream>
int main()
{
cout < < “Hello World!” < < endl;
return 0;
}
compiler error:
$g++ s.> s.bbpp: In function ‘int main(int, char**)’:
The
td> tr> tbody> table> s.cpp:12: error: `cout’ was not declared in this scope s.cpp:12: error: `endl’ was not declared in this scope The reason: Revised: or Compile through. |