A sample program:
program quest
#ifdef _VEM_OMP
use omp_lib
#endif
#ifdef _VEM_OMP
write(*,*) "num procs:", omp_get_num_procs()
#endif
write(*,*) "Finished"
end
Compile & link with:
>ifort -fpp -D_VEM_OMP -openmp-link static quest.f90 -o quest -L/opt/intel/Compiler/11.0/081/lib/intel64 -liomp5
run with:
>./quest
Response:
>./quest: error while loading shared libraries:libiomp5.so: cannot open shared object file: No such file
Question: Why is it trying to find and load a dynamic lib when I told it to do a static link?



