Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
27 Views

compile mkl example under qt creator 4.2.1 linux 64

Jump to solution

Hi,

I am trying to compile the example cblas_caxpy example in the following environment

qt creator 4.2.1

qt 5.8.0

compiler : g++

os: linux debian 8.0 64 bits

I linked with lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 and added I guess proper include path but I get the following compile error:

in function 'main':

undefined reference to GetIntegerParameters

undefined reference to GetScalarC

etc..

What did I miss ?

Thanks

Agks

0 Kudos

Accepted Solutions
Highlighted
Employee
27 Views

Hi agks,

Are you compiling the sample in MKL examples folder? If so, please notice there's one more source file need to be compiled, common_func.c

Actually, we provided makefile in the directory examples/cblas for building samples, you could use refer to use.

Best regards,
Fiona

View solution in original post

0 Kudos
3 Replies
Highlighted
Employee
28 Views

Hi agks,

Are you compiling the sample in MKL examples folder? If so, please notice there's one more source file need to be compiled, common_func.c

Actually, we provided makefile in the directory examples/cblas for building samples, you could use refer to use.

Best regards,
Fiona

View solution in original post

0 Kudos
Highlighted
Moderator
27 Views

GetIntegerParameters and GetScalarC are declared in mkl_example.h file mklroot/examples/cblas/source ). you just need to include this header.

0 Kudos
Novice
27 Views

Fiona, you are right I forgot this common_func.c file

Thanks a lot

agks

0 Kudos