Skip to contentSkip to conversation

question about iostream.h

DISCUSSION Edward Parrilla 2 participants 3 messages Oct 16, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,
I am trying to use
<iostream.h> or <iostream> but it keeps telling me that file is not found
but I found file located at:

/usr/include/g++-3/iostream.h

if I type
#include </usr/include/g++-3/iostream.h>
it gives me the following error:
/usr/include/g++-3/iostream:6:22: iostream.h: No such file or directory linktest1.c:8:16: list: No such file or directory

which is the mistake?
Thanks in advance for your assistance.
Best regards
Ed

#1 lore raw

Hi!


Quoted 8 lines

Hi all,
I am trying to use
<iostream.h> or <iostream> but it keeps telling me that file is not found
but I found file located at:

/usr/include/g++-3/iostream.h

Quoted 8 lines

if I type
#include </usr/include/g++-3/iostream.h>
it gives me the following error:
/usr/include/g++-3/iostream:6:22: iostream.h: No such file or directory linktest1.c:8:16: list: No such file or directory

which is the mistake?
Thanks in advance for your assistance.

add the next lines:

#include <iostream>
using namespace std;

bye

Signature · 9 lines
Antonio Téllez Flores
Ciencias de la Computación
Facultad de Ciencias - UNAM
Home Page: http://ada.fciencias.unam.mx/~atellez

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

Hi

Quoted 14 lines



Quoted 5 lines

I am trying to use
<iostream.h> or <iostream> but it keeps telling me that file is not found
but I found file located at:

Quoted 7 lines

/usr/include/g++-3/iostream.h

if I type
#include </usr/include/g++-3/iostream.h>
it gives me the following error:
/usr/include/g++-3/iostream:6:22: iostream.h: No such file or directory linktest1.c:8:16: list: No such file or directory

Quoted 4 lines

add the next lines:

#include <iostream>
using namespace std;

and compile with g++ instead of gcc

bye

Signature · 9 lines
Antonio Téllez Flores
Ciencias de la Computación
Facultad de Ciencias - UNAM
Home Page: http://ada.fciencias.unam.mx/~atellez

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html