I'm compiling a cpp code with icc (under ubuntu):
icc -I/usr/share/R/include -I/~/Desktop/work/p1/geqw4/vi3/out/sp/ccode/eigen -fpic -O2 -pipe -c -DEIGEN_NO_DEBUG aha.cpp -o aha.o
icc -shared -o aha.so aha.o -L/usr/local/lib/R/site -Wl,-rpath,/usr/local/lib/R/site -L/usr/lib64/R/lib -lR
it compiles, but upon running the executable i get:
unable to load shared object '~/Desktop/work/p1/geqw4/vi3/out/sp/ccode/simcode/mine2/aha.so':
libimf.so: cannot open shared object file: No such file or directory
libimf.so is in /opt/intel/lib/intel64. I remember running unto the same problem the last time i used icc (a year ago) but i don't recall what the solution was.