Languages and Scripting

Classic C++ runtime .....-AP

 
sushant keerti
Advisor

Classic C++ runtime .....-AP

Hi,
1) We are migrating our application from hp-ux 11.0 to 11.23. We are using -AP option to compile the code as, application code contatins istream and ostream classes. And also our application uses dmq and tuxedo libraries. Will there any be conflict if the dmq and tuxedo libraries are not compiled with -AP option?(These dmq and tuxedo libraries are third party softwares/libraries.)
We have linked our application with dmq and tuxedo libraries successfully. Wanted to know, will it fail at runtime, as dmq/tuxedo and our application are using different runtime environment( if dmq/tuxedo uses standard C++ runtime)?

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Classic C++ runtime .....-AP

Is this PA or IPF?

You need to make sure your whole application is compile either -AP or -AA, you can't mix and match.

>will it fail at runtime, as dmq/tuxedo and our application are using different runtime environment(if dmq/tuxedo uses standard C++ runtime)?

Most likely.
sushant keerti
Advisor

Re: Classic C++ runtime .....-AP

Dennis,
We are using hp-ux 11.23 IPF (itanium).
The whole application has been compiled with -AP option.
And our application is using third party softwares like DMQ 5.0 and TUXEDO 9.1 ( from BEA).
We link some of the DMQ and TUXEDO libraries to build our application. As these DMQ and TUXEDO are third party softwares, I guess there is no need to bother about how they have been compiled(either with -AP or any other option. And also we donot have the source code also to check the same, as we get only libraries when we install it). Will the application fail at runtime if, we use -AP flag to compile our application and link with DMQ/TUXEDO libraries?
Dennis Handly
Acclaimed Contributor

Re: Classic C++ runtime .....-AP

>The whole application has been compiled with -AP option. And our application is using third party software like DMQ 5.0 and TUXEDO 9.1

These third party libs are also part of your application!
If they are written in aC++, you must also make sure they are compiled with -AP. If they are -AA, you must port your application to -AA.

>I guess there is no need to bother about how they have been compiled (either with -AP or any other option.

This is incorrect. Every lib and object must be compiled with the same -AA or -AP. (Unless they are C sources.)

>Will the application fail at runtime if, we use -AP flag to compile our application and link with DMQ/TUXEDO libraries?

Possibly, you can't mix and match -AA and -AP.