Community
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_l_
Beginner
76 Views

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

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
76 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

 

Reply