Community
cancel
Showing results for 
Search instead for 
Did you mean: 
anand_b_
Beginner
29 Views

compiling and linking

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
29 Views

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