Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

Compatiblity of gcc 4.3.2 with 8.1, 9.1, 11.1

zvivered
Beginner
127 Views
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
JenniferJ
Moderator
127 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

TimP
Black Belt
127 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.
Reply