I get the following error while executing a C program compiled with icc.
progName: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
I know that I must have the LD_LIBRARY_PATH pointing to /opt/intel/composer_xe/compiler/lib and similar. How do I get around this if I am distributing the binaries or sending the binaries over to a friend who does not have the intel shared libraries? I tried static linking and got the warning -
progName.c:(.text+0x70): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
However, things work fine if I choose not to use the intel shared libraies (not use the -shared-intel switch).
- When do I use intel shared libraries over the system default libraries?
- If I have to use the intel shared library, how do I distribute the binaries I compile using icc?