Math Kernel Library Developer Guide

Linking on Intel® 64 Architecture Systems

The following examples illustrate linking that uses Intel® compilers.

Most examples use the .f Fortran source file. C/C++ users should instead specify a .cpp (C++) or .c (C) file and replace ifort with icc.

In these examples,
MKLPATH=$MKLROOT/lib
/intel64_lin,
MKLINCLUDE=$MKLROOT/include
.

Note

If you successfully completed the Scripts to Set Environment Variables Setting Environment Variables step of the Getting Started process, you can omit -I$MKLINCLUDE in all the examples and omit -L$MKLPATH in the examples for dynamic linking.

See Also