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

compile mkl example under qt creator 4.2.1 linux 64

agks
Novice
263 Views

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
263 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
264 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

Gennady_F_Intel
Moderator
263 Views

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

agks
Novice
263 Views

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

Thanks a lot

agks

Reply