Community
cancel
Showing results for 
Search instead for 
Did you mean: 
agks
Novice
166 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
1 Solution
Zhen_Z_Intel
Employee
166 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

3 Replies
Zhen_Z_Intel
Employee
167 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

Gennady_F_Intel
Moderator
166 Views

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

agks
Novice
166 Views

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

Thanks a lot

agks

Reply