Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Problem with Lapack library

dqkngoc
Beginner
476 Views

Dear all,

Ihave tried to use Intel MKL with Visual Studio 2005. The BLAS library is working well but i meet problem with LAPACK functions. After correting all syntax errors in the program, the compiler informs many othererrors like:

1>mkl_ia32.lib(p3_ctrmm_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_global_thread_num referenced in function _mkl_blas_p3_ctrmm

1>mkl_ia32.lib(def_ctrmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_global_thread_num

1>mkl_ia32.lib(p4p_cgemm_omp.obj) : error LNK2001: unresolved external symbol _omp_in_parallel

Would anyone please help me to deal with this problem. Thanks in advance!

Best Regards,

Duong, Q.K. Ngoc.

0 Kudos
2 Replies
TimP
Honored Contributor III
476 Views
You must either choose the serial library versions of both BLAS and Lapack, or provide for linking and running with the OpenMP libraries. If using Intel C++ or Fortran, you would specify the Qopenmp or Qparallel options (at least for link). If using MSVC++, you would include the libguide from MKL in your project. Instructions for this should be found in the MKL doc directory.
0 Kudos
dqkngoc
Beginner
476 Views

Dear Tim18,

Thank you very much for your suggestion. I added Libguide from MKL to my project and it's working now.

Best regards,

dqkngoc.

0 Kudos
Reply