Compilation on g++ at the library Iostream.h
This bug report was converted into a question: question #52210: Compilation on g++ at the library Iostream.h.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello.
I am student of University , and then use Ubuntu Intrepid now I have to compile programs in C + + do the cogigo something as simple as this example but I get error.
#include "iostream.h" // or #include <iostream.h>
int main (void)
{
cout << "Este es mi segundo programa";
}
The mode of compilation is: g++ Geometria.cpp -o geometria
The errors:
jhosman@
Geometria.cpp:5:22: error: iostream.h: No existe el fichero ó directorio
Geometria.cpp: In member function ‘void triangulo::leer()’:
Geometria.cpp:17: error: ‘cout’ no se declaró en este ámbito
Geometria.cpp:18: error: ‘cin’ no se declaró en este ámbito
Geometria.cpp: In member function ‘void circulo::leer()’:
Geometria.cpp:32: error: ‘cout’ no se declaró en este ámbito
Geometria.cpp:33: error: ‘cin’ no se declaró en este ámbito
Geometria.cpp: In member function ‘void cuadrado::leer()’:
Geometria.cpp:46: error: ‘cout’ no se declaró en este ámbito
Geometria.cpp:47: error: ‘cin’ no se declaró en este ámbito
Geometria.cpp: In member function ‘void rectangulo:
Geometria.cpp:58: error: ‘cout’ no se declaró en este ámbito
Geometria.cpp:59: error: ‘cin’ no se declaró en este ámbito
Geometria.cpp: In member function ‘void resultado:
Geometria.cpp:69: error: ‘cout’ no se declaró en este ámbito
Geometria.cpp:69: error: ‘endl’ no se declaró en este ámbito
The problem is in Ubuntu Intrepid Ibex of 32 Bits, Software Installed: g++ and all libreries of iostream and build-essentials
HELP ME
Turned into a question: the code is not valid.