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

MKL examples

innov_es
Beginner
376 Views
Hello!
I am new with MKL.
I need to useFFT in my calculations. I started with compilingthis example: real_1d_cce_single_ex2.f90
with command

ifort -o MKLTest real_1d_cce_single_ex2.f90 -I/opt/intel/mkl/8.0.2/include/ -L/opt/intel/mkl/8.0.2/lib/32 -lmkl -lguide -lm

and got such an error:

/tmp/ifortvx5XnK.o: In function `MAIN__':
real_1d_cce_single_ex2.f90:(.text+0x49f): undefined reference to `init_real_vector_s_'
real_1d_cce_single_ex2.f90:(.text+0x528): undefined reference to `print_vector_s_'
real_1d_cce_single_ex2.f90:(.text+0x573): undefined reference to `dfti_example_status_print_'
real_1d_cce_single_ex2.f90:(.text+0x5b1): undefined reference to `dfti_example_status_print_'
real_1d_cce_single_ex2.f90:(.text+0x5e4): undefined reference to `dfti_example_status_print_'
real_1d_cce_single_ex2.f90:(.text+0x622): undefined reference to `dfti_example_status_print_'
real_1d_cce_single_ex2.f90:(.text+0x6db): undefined reference to `dfti_example_status_print_'
/tmp/ifortvx5XnK.o:real_1d_cce_single_ex2.f90:(.text+0x6eb): more undefined references to `dfti_example_status_print_' follow
/tmp/ifortvx5XnK.o: In function `MAIN__':
real_1d_cce_single_ex2.f90:(.text+0x767): undefined reference to `print_vector_c_'
real_1d_cce_single_ex2.f90:(.text+0x7b6): undefined reference to `dfti_example_status_print_'
real_1d_cce_single_ex2.f90:(.text+0x8ce): undefined reference to `print_vector_s_'
real_1d_cce_single_ex2.f90:(.text+0x8e5): undefined reference to `check_result_s_'
real_1d_cce_single_ex2.f90:(.text+0x9d2): undefined reference to `dfti_example_status_print_'
real_1d_cce_single_ex2.f90:(.text+0x9e2): undefined reference to `dfti_example_status_print_'
make: *** [MKLTest] Fehler 1


I understand that I need to link additiinallibrary, but I tried almost everyone.
What exactly should I add?

Thanks!
0 Kudos
1 Reply
Vladimir_Lunev
New Contributor I
376 Views
Hi,

Please try to use the provided makefile to run examples.
For instance: >make so32

-Vladimir

0 Kudos
Reply