Math Kernel Library Developer Guide

Linking on IA-32 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/ia32_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