Before configuring Eclipse IDE C/C++ Development Tools
(CDT) 4.0, make sure to turn on the automatic makefile
generation.
To configure Eclipse CDT 4.0 to link with Intel MKL, follow the instructions below:
- If the tool-chain/compiler integration supports include path options, go to
C/C++ General
>
Paths and Symbols
>
Includes
and set the Intel(R) Math Kernel Library (Intel(R) MKL) include path, that is,
<mkl directory>/include.
- If the tool-chain/compiler integration supports library path options, go to
C/C++ General
>
Paths and Symbols
>
Library Paths
and set the Intel MKL library path for the target architecture, such as
<mkl directory>/lib/intel64.
- Go to
C/C++ Build
>
Settings
>
Tool Settings
and specify the names of the Intel MKL libraries to link with your application, for example,
mkl_intel_lp64,
mkl_intel_thread_lp64,
mkl_core,
and
iomp5
(compilers typically require library names rather than library file names, so omit the "lib"
prefix and "a"
extension). To learn how to choose the libraries, see
Selecting Libraries to Link. The name of the particular setting where libraries are specified depends upon the compiler integration.