Operating System - HP-UX
1752848 Members
3656 Online
108789 Solutions
New Discussion юеВ

aCC use new C++ standards - std namespace error

 
SOLVED
Go to solution
Raheel A
Advisor

aCC use new C++ standards - std namespace error

I posted my thread in wrong section:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1296562

so reposting in the correct one..
10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: aCC use new C++ standards - std namespace error

If you repost in the correct one, you must copy all of the info from the wrong on into this one. Then we can delete the other.
Dennis Handly
Acclaimed Contributor

Re: aCC use new C++ standards - std namespace error

>had trouble using std namespace ... it was mentioned to use -AA flag:

-AA was made available in obsolete A.03.26 and A.03.27.

>the links specified in the replies don't work. can someone please post the correct link?

aC++ documentation is available off of the documentation link, off of:
http://www.hp.com/go/cpp
http://www.docs.hp.com/en/1837/options.htm#optioncap-AA

>aCC: HP ANSI C++ B3910B A.03.25
>what are the options available for me?

You don't have much. This is obsolete, A.03.55 was the last release for 11.00. And 11.00 is obsolete.

You could:
1) Port from -AA to -AP.
2) Buy a new Integrity server and install 11.31 and use A.06.20. :-)
3) Somehow get an old g++ that runs on 11.00.
Raheel A
Advisor

Re: aCC use new C++ standards - std namespace error

so -AA is not available for 3.25 which i what i have..so if i install 3.26, i can use -AA then?
Raheel A
Advisor

Re: aCC use new C++ standards - std namespace error

also in the documentation link you provided it says "In order to use the new 2.0 library, you must recompile using the -AA option and you may need to apply a runtime and/or header file patch appropriate to your operating system (see list below). You do not need to install the header file patch if you use the A.03.30 compiler. The header file patches are needed for A.03.27, A.03.26, A.03.25, and A.01.27."

where can i find these patches..
i am getting following error msges:

line 34 # 'class' expected instead of 'std'.
std::string _commandString;
^^^
Error 628: line 34] cannot be defined to have an incomplete type.
std::string _commandString;
^^^^^^^^^^^^^^
Error 239: "../../../include/tptp/TPTPCommand.h", line 34 # A class/union shall not contain a member with incomplete type.
std::string _commandString;
^^^^^^^^^^^^^^
Error 537: line 34 # Cannot create a 'string' object; class string has only been seen as an incomplete declaration.
std::string _commandString;
^^^^^^^^^^^^^^
Error 112: line 18 # Include file not found.
#include
^^^^^^^^^
Error 697:line 23 # Only namespace names are valid here.
using namespace std;
^^^
^^^^^^^^^^^^^

Thanks a lot!
Dennis Handly
Acclaimed Contributor

Re: aCC use new C++ standards - std namespace error

>so if I install A.03.26, I can use -AA then?

A.03.26 was for 11.11.

>where can I find these patches?

Have you looked at the ITRC patch database?
http://www.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_22868

>I am getting following error messages:

What version of the compiler do you have? And have you used -AA?
You must have at least A.03.27. I'm no longer sure why A.03.25 was mentioned?
Raheel A
Advisor

Re: aCC use new C++ standards - std namespace error

Here is my machine specification:-bash-2.05b$ -bash-2.05b$uname -a
HP-UX B.11.00 U 9000/785 2001469948
-bash-2.05b$model
9000/785/C3000
-bash-2.05b$ getconf KERNEL_BITS
64

-bash-2.05b$ aCC -V
aCC: HP ANSI C++ B3910B A.03.25
Dennis Handly
Acclaimed Contributor
Solution

Re: aCC use new C++ standards - std namespace error

>Here is my machine specification

(Same as what I found in your other threads.)
Try installing PHSS_22868 and use -AA.
How many files do you have in /opt/aCC/include_std/?

If you don't have any, you need to get a new compiler version, or use g++.
Raheel A
Advisor

Re: aCC use new C++ standards - std namespace error

using swlist i found out that i already have 24627 installed:
http://www11.itrc.hp.com/service/patch/patchDetail.do?admit=109447626+1229360530855+28353475&patchid=PHSS_24627

but not PHSS_22868 which the above one depends on..so is this why i am still seeing the errors mentioned in previous reply

btw, in the patch description, the patches mentioned under the heading of "Symptoms:" , that means all these patches are part of this patch?
Dennis Handly
Acclaimed Contributor

Re: aCC use new C++ standards - std namespace error

>I found out that I already have PHSS_24627

You should install the recommended: PHSS_26945

>is this why I am still seeing the errors mentioned in previous reply

Possibly, or that patch won't work with A.03.25.

>that means all these patches are part of this patch?

Yes, patches are cumulative.