Linking with System Libraries

To use the Intel MKL FFT, Trigonometric Transform, or Poisson, Laplace, and HelmholtzSolver routines, link also the math support system library by adding "-lm" to the link line.

The libiomp5 library relies on the native pthread library for multi-threading. Any time libiomp5 is required, add -lpthreadto your link line afterwards (the order of listing libraries is important).

The libtbb library relies on the compiler libstdc++ library for C++ support. Any time libtbb is required, add -lstdc++ to your link line afterwards (the order of listing libraries is important).

Note

To link with Intel MKL statically using a GNU or PGI compiler, link also the system library libdl by adding -ldl to your link line. The Intel compiler always passes -ldl to the linker.

See Also

Select sticky button color: 
Orange (only for download buttons)
For more complete information about compiler optimizations, see our Optimization Notice.