Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

ABI in icc and dynamic linking with gcc based product

lsi_raman
Beginner
858 Views
Hi,

This post is about ABI in icc and its interaction with
dynamic linking features in a gcc based product.
The OS is Linux.

We develop and deliver code modules that are
dynamically linked in an application that one of our 3rd
party vendors provide.

If we use icc 7.0 for linux and if our vendor uses
gcc, will this work seamlessly?

Does anyone have experience playing with dlopen() like
stuff with heterogeneously generated objects? ABI in icc
seems to guarantee that this will work, but I thought it's
better to check with the community. Are there any known
things to watch out for?

Appreciate your time.

Thanks,
-raman
0 Kudos
1 Reply
Maximillia_D_Intel
858 Views
The answer to your question is, it depends.

I believe that if the source code is all C, what you describe will work fine.

If the sources are C++, it should not work. There are some known ABI incompatibilities in gcc 3.2. In addition, gcc and icc version 7.0 use different underlying c++ libraries (iostream, etc.), and define different macros.

Max
[Intel Compiler Team]

0 Kudos
Reply