Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
11 Views

Compatiblity of gcc 4.3.2 with 8.1, 9.1, 11.1

Hello,

We have a C++application that was compiled with 8.1
We wantto link it with 2 C++ libraries compiled with gcc 4.3.2 and with glibc libraries: librt.a, libpthread.a
Is it possible ?
Is there a limitation on the glibc version we can use ?
The gcc is not part of the host's distribution (red hat). It is installed separately in /opt

Same question for 9.1 and for 11.1.

Thanks.



0 Kudos
2 Replies
Highlighted
Moderator
11 Views

This is not supported scenario on mixing libs built with old compiler with libs built with new compiler.

You should use the compatible libs together.Unless you're sure that your libsdo not use anything specificfrom the old libs that are not supported or changed in the new libs, it may work. Butit's not supported.

Jennifer

0 Kudos
Highlighted
Black Belt
11 Views

icpc 11.1 has the best (a good) chance of compatibility with g++ 4.3. You should have the desired g++ active on PATH when you run icpc. The tested versions of glibc are documented in the installation notes for each version of icpc. The most critical requirement typically is that you don't attempt to link any .o into an older glibc than it was built against.
0 Kudos