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

Link Error

joesam
Beginner
870 Views
Hi

While using cblas_dgemm(CblasRowMajor,transa,transb,
m,n,k,alpha,dMatrixA,lda,dMatrixB,ldb,beta,dMatrixC,ldc)
function, I am getting a linker error as shown below.

error LNK2001: unresolved external symbol ___kmpc_global_thread_num


I am using VC++ 6.0 compiler.

Please help me to solve this issue.

Thanks and Regards
Joesam
0 Kudos
3 Replies
TimP
Honored Contributor III
870 Views
I'm guessing you didn't include libguide.lib in your link.
0 Kudos
joesam
Beginner
870 Views
Hi

Thanks for your reply.
I have added only mkl_c.lib in the "Object/Library moduls" of "Link" in the Project Settings.
Where I have to include "libguide.lib"? Is it in the same place where I have added "mkl_c.lib"?
Also please let me know whether any other settings to be made to call the MKL functions?

Thanking You

Regards
Joesam

0 Kudos
joesam
Beginner
870 Views
Also can you please mail me a sample working code which uses dgemm() function, if you have.

Thanks and Regards
Joesam
0 Kudos
Reply