I am creating a dynamic library in linux. below is the command that was used
icpc -shared -o xxx.so ************** -static-intel -mkl -Wl,--start-group -lmkl_intel -lmkl_intel_thread -lmkl_core -liomp5 -Wl,--end-group -Wl,-Bdynamic -lm -lpthread
I am using the fft routines in mkl library. However i keep getting this errors
icpc: warning #10237: -lcilkrts linked in dynamically, static library not available
ld: QubeVuBarcodes_test.so: version node not found for symbol omp_set_nest_lock@OMP_3.0
ld: failed to set dynamic section sizes: Bad value
your reference liomp5 must come after all mKl references As mkl link advisor would show.You would require both openmp and cilk shared libraries. There are additional questions about using both oopenmp and cilk threads. Mkl sequential might be alternative.