1753701 Members
5214 Online
108799 Solutions
New Discussion юеВ

Re: iostream.h

 
satishmarigoudar
Occasional Advisor

iostream.h

Hi,
I am trying to compile a c++ program on my hp-ux 11.23 64 bit OS machine and it is throwing the error
>/usr/ccs/lbin/cpp test.cpp

cpp: "test.cpp", line 1:error 4036: Can't open include file 'iostream.h'.
Could anybody help me regard to this.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: iostream.h

Hi:

Perhaps this helps:

http://docs.hp.com/en/6162/faq.htm

Regards!

...JRF...
Hein van den Heuvel
Honored Contributor

Re: iostream.h

Is this a first program you are trying?
Sounds like a rather basic question.
Check the user/usage guides?

I know noting about c++.

But I can
#find /usr/include -name iostream.h
---> /usr/include/aCC/iostream

And I can make cpp look there using:

$ /usr/ccs/lbin/cpp -I/usr/include/aCC/iostream test.c

Cheers,
Hein.




Torsten.
Acclaimed Contributor

Re: iostream.h

c++ is really not my subject, but check if it is

#include

instead of

#include

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: iostream.h

What's your compiler & version?

Why are you using the K&R cpp preprocessor instead of aCC or g++ drivers?

>Hein: And I can make cpp look there using:
$ /usr/ccs/lbin/cpp -I/usr/include/aCC/iostream test.c

Why? You need to make a compiler look there, not cpp.

>Torsten: but check if it is
>#include

This is the Standard. For aC++ you need to compile with -AA.

>#include

This is the old cfront header. You compile this with -AP.
Hein van den Heuvel
Honored Contributor

Re: iostream.h

>Hein: And I can make cpp look there using:
$ /usr/ccs/lbin/cpp -I/usr/include/aCC/iostream test.c

Dennis> Why? You need to make a compiler look there, not cpp.

Oh, for no particular good reason.

I just observed you CAN, not that you should :-)
The cpp (pre-processor) does have an "-L" option and it does remove the error!

sheepish grin,
Hein.