error #2005-D: could not open source file "iostream/strstream.h" (409 Views)
Reply
Advisor
Goutham YJ
Posts: 15
Registered: ‎09-11-2009
Message 1 of 5 (409 Views)
Accepted Solution

error #2005-D: could not open source file "iostream/strstream.h"

Hi,

We are migrating a C/C++ application from HPUX11.11 to Itanium V23. I am compiling as a 32 bit application.

When I am compiling a particular file, I get the following error.

/opt/aCC/bin/aCC -I/opt/tuxdir/tuxedo8.1/include -I/opt/siadev/mxshai3/SIA/1_1_code/common/include -I/opt/siadev/slayer/include -I/opt/siadev/slayer/include -g0 +z +DD32 -c SiaCommonInterface.cpp
"/opt/siadev/mxshai3/SIA/1_1_code/common/include/BSCTypeDefs.h", line 22: error #2005-D:
could not open source file "iostream/strstream.h"
#include

But if I add -I/opt/aCC/include in the Makefile, then I get a Catastrophic error and I found we should not include aCC/include for Itanium series.

How to include iostream/strstream.h if I cannot refer to aCC/include path?

Please help.

Thanks,
Goutham
Please use plain text.
Advisor
Goutham YJ
Posts: 15
Registered: ‎09-11-2009
Message 2 of 5 (409 Views)

Re: error #2005-D: could not open source file "iostream/strstream.h"

Hi,

I seem to have overcome this problem by adding -AP option. I saw this in another thread here and it worked.

But is this the correct solution?

Thanks,
Goutham
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,700
Registered: ‎03-06-2006
Message 3 of 5 (409 Views)

Re: error #2005-D: could not open source file "iostream/strstream.h"

>error #2005-D: could not open source file "iostream/strstream.h"

It is illegal to include "iostream/" as part of the include file path. Your includes should have just been .

>if I add -I/opt/aCC/include in the Makefile, then I get a Catastrophic error and I found we should not include aCC/include

Right.

>How to include iostream/strstream.h if I cannot refer to aCC/include path?
>seem to have overcome this problem by adding -AP option. But is this the correct solution?

Not really. It is not recommended you use -AP. You shouldn't use strstream.h with -AA. You should instead port to the deprecated Standard , or better yet, .
Please use plain text.
Advisor
Goutham YJ
Posts: 15
Registered: ‎09-11-2009
Message 4 of 5 (409 Views)

Re: error #2005-D: could not open source file "iostream/strstream.h"

Thanks a lot Dennis. It worked :)
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,700
Registered: ‎03-06-2006
Message 5 of 5 (409 Views)

Re: error #2005-D: could not open source file "iostream/strstream.h"

>It worked :)

You might mention which of my N suggestions worked, for everyone else.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation