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

How can I use libraries which were compiled by Intel compiler, when I'm using gcc?

amit_l_
Beginner
432 Views

I'm running on Linux and I got a library (.a) which was compiled by Intel compiler.

I'm trying to link against this static library (I'm using g++) and getting link error:

undefined reference to intel_fast_memcpy

I requested to get the library as a shared library (.so) which was compiled by intel compiler too, and I got the same error.

How can I use libraries which were compiled by Intel compiler, when I'm using gcc?

0 Kudos
1 Reply
MalReddy_Y_Intel
Employee
432 Views

Hi,

Intel compiler could have generated code in the libraries(.a or .so) by using the Intel specific libraries(libirc.so in this particular case), So we have to provide the Intel libraries path to g++ compiler as below.

#g++ -L/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64/ -lirc

Thanks,

Reddy

 

0 Kudos
Reply