Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Static linking with -mkl, -ipp or -tbb may give unresolved references

$
0
0

Reference Number : dpd200252274

Version : Intel® C++ Compiler and Intel® Fortran Compiler versions 13.0.1, 13.1.any, 14.0.0 and 14.0.1

Operating System :  Linux*, OS X*

Problem Description : When an application is linked statically with Intel® MKL using the -mkl switch of the Intel C++ or Fortran Compiler, the MKL libraries occupy the same position on the command line as the -mkl switch itself. If the -mkl switch precedes the user source or object files, this may result in an unresolved reference to an MKL function at link time.

        A similar problem may occur if the Intel® Performance Primitives or Intel® Threading Building Blocks are linked using the -ipp or -tbb switches of the Intel C++ compiler and the switch is placed before the user source or object files.

Resolution Status :  This is a known issue that may be resolved in a future compiler update.

As a temporary workaround, the switches -mkl, -ipp or -tbb should be placed after any user source, object or library files on the command line. Alternatively, the Intel-provided libraries may be linked dynamically instead of statically, e.g. by replacing -static-intel with -shared-intel.

 


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>