- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Usage -AA compile option on HPUX PA & IA.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 08:39 AM
тАО09-14-2010 08:39 AM
We have C++ applications which tries to link with our product's libraries and calls most of our APIs.
I got below info from HP manual,
"The standard features enabled by -AA are incompatible with the older Rogue Wave Standard C++ Library 1.2.1 and Tools.h++ 7.0.6. All modules must be consistent in using -AA. Mixing modules compiled with -AA with ones that are not is not supported. "
Could you please clarify "If our C++ applications does't use -AA then there will be any issues?".
From above manual, it seems there will be issues and applications must use -AA, must link with libstd_v2. Right?
Also we have C applications which links with our libraries and calls our product's APIs
They don't require usage of -AA.
Will there be any issues in this case.
Please let me know.
Thanks
regards,
Srikrishna Erra.
Solved! Go to Solution.
- Tags:
- -AA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:22 PM - edited тАО07-10-2011 04:30 PM
тАО09-14-2010 03:22 PM - edited тАО07-10-2011 04:30 PM
SolutionWhat version of aC++ are you using? Is this PA or Integrity?
>"If our C++ applications doesn't use -AA then there will be any issues?".
The default on PA is -AP, so you may have problems. On Integrity, the default is -AA, so you won't.
>it seems there will be issues and applications must use -AA, must link with libstd_v2. Right?
Yes.
>we have C applications which links with our libraries and calls our product's APIs
>They don't require usage of -AA. Will there be any issues in this case?
You don't need -AA but you need to make sure the aC++ runtime is either linked into your executable (use aCC -AA to link), or you follow the directions for linking with aC++:
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/distributing.htm#linking
(And similar for PA.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 09:38 AM
тАО09-15-2010 09:38 AM
Re: Usage -AA compile option on HPUX PA & IA.
We have both PA & IA.
IA: aCC: HP aC++/ANSI C B3910B A.05.50 [Jan 06 2003]
PA: aCC: HP ANSI C++ B3910B A.03.50
On PA, Our product has -lstd_v2 -lCsup_v2 in the link line.
On IA, has -lstd_v2 -lCsup in the link line.
>>The default on PA is -AP, so you may have problems. On Integrity, the default is -AA, so you won't.
So you mean to say,
On PA, C++ applications need to have -AA and use -lstd_v2 -lCsup_v2 linker options while linking with our product libraries as they are built with -AA.
On IA, C++ applications are not required to have -AA as default on IA is -AA.
Our C applications don't use -AA during compiling but uses below linker options
On PA, -lstream -lCsup
On IA, -lstd_v2 -lCsup
Is that enough for C applications?
Thanks
regards,
Srikrishna Erra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 10:14 PM
тАО09-15-2010 10:14 PM
Re: Usage -AA compile option on HPUX PA & IA.
This version isn't supported. The latest is A.06.25.01.
>PA: aCC: HP ANSI C++ B3910B A.03.50
This is pretty old too.
>Our product has -lstd_v2 -lCsup_v2 in the link line.
>On IA, has -lstd_v2 -lCsup in the link line.
If you are linking executables with aCC, you shouldn't need to add those.
>So you mean to say, On PA, C++ applications need to have -AA and use -lstd_v2 -lCsup_v2 linker options while linking with our product libraries as they are built with -AA.
Well, just link with -AA.
>On IA, C++ applications are not required to have -AA as default on IA is -AA.
It is still a good idea to have -AA.
>Our C applications don't use -AA during compiling but uses below linker options
>On PA, -lstream -lCsup
Ack! These are -AP libs and you can't mix with -AA.
>On IA, -lstd_v2 -lCsup
>Is that enough for C applications?
(You are missing -lunwind and -lm.)
Or just link with aCC.