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

compiling and linking

anand_b_
Beginner
99 Views

i have to compile and link using mkl

the command to be used is

ifort -w -o abc abc.f p.f q.f -mkl=sequential -L/lib -lmyvc -lmyfg

sometimes this command works. at times it gives error that -lmyvc/ libmyvc.a / -lmyvc not found. then i have to place libmyvc.a and libmyfg.a in source codes folder and give above command it creates executable abc.

i feel the problem is due to non linking of .a files with mkl=sequential.

how can i overcome this problem

anand

0 Kudos
1 Reply
TimP
Black Belt
99 Views

Mkl link advisor covers static library linking.  You must pay attention to order of libraries and group directives.

Reply