I am compiling a short c code that call gsl/2.5, linking is like
mpicc -idirafter /usr/include/linux -g -O2 -mieee-fp -no-vec -Wpointer-arith -fno-strict-aliasing -DMPI -fPIC -shared -o libfinal.so mycode1.o mycode2.o -lgsl -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
At run time I get:
libmkl_intel_ilp64.so: undefined symbol: mkl_lapack_ao_ssyrdb
I would think I am doing something incorrect with linking, am not I?
For more complete information about compiler optimizations, see our Optimization Notice.