|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared and g++application
Hello,
We have the following problem when porting application from Linux to HP-UX IPF 11.23 : - we use the gcc/g++ compiler to be close to the Linux compilation process - we need to link to an already ported share object compiled with aCC and library libstd_v2 - To link our application with this share object we then need to link our application with libstd_v2 The compiled application systematically generates a core file. After investigation it seems that there is a conflict between the libstdcso (from g++) and libstd_v2.so (from aCC) This problem can be easily reproduced with the following code : #include <iostream> using std::cout; int main(int argc, char **argv) { cout << "a standard output \n" ; } And then compile with : g++ -mlp64 -o essai_io essai_io.cpp -lstd_v2 -lCsup ( Note that -lstd_v2 is not usually needed to link with g++ but here, we use it to simulate the link with our shared library generated by aCC ) The compiled application systematically generates a core dump at runtime Do you know if libstdcso from g++ and libstd_v2.so from aCC can be used in the same process ? Do you know if we can set some flag to aCC to generate shared library compatible with g++ ? Every suggestion should be appreciate Thanks Laurent To leave this mailing list, send mail to majordomo (AT) cxx (DOT) cup.hp.com with the message UNSUBSCRIBE cxx-dev |
|
#2
|
|||
|
|||
|
CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared andg++ application
At 01:15 PM 11/2/2005, Cavalier, Laurent wrote:
>Do you know if libstdcso from g++ and libstd_v2.so from aCC can be >used in the same process ? Yes, we know. No, they cannot be mixed. The two ABI implementations are not compatible. >Do you know if we can set some flag to aCC to generate shared library >compatible with g++ ? No, it is not possible to mix and match C++ modules from the two compilers. To leave this mailing list, send mail to majordomo (AT) cxx (DOT) cup.hp.com with the message UNSUBSCRIBE cxx-dev |
|
#3
|
|||
|
|||
|
CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared andg++ application
Wed, Nov 02, 2005 at 10:19:01AM -0800, Steve Ellcey wrote:
You can mix C code from GCC with C code from HP C, and either of these can be mixed with one of the two C++ compilers (g++ or aCC), but there is no way to mix g++ and aCC code in one process. They use completely different runtime systems and their ABI's are not identical. I thought there was an IA-64 C++ ABI standard so different C++ compilers on IA-64 could share libraries? If so, is it just that G++ doesn't implement it? -- albert chin (china (AT) thewrittenword (DOT) com) To leave this mailing list, send mail to majordomo (AT) cxx (DOT) cup.hp.com with the message UNSUBSCRIBE cxx-dev |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Unix > CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared and g++application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|