gcc -o foo foo.c -I/opt/intel/mkl/10.1.0.015/includeResults in runtime error when loading shared libraries during execution:
Before using the Intel® MKL shared libraries, update the system variable LD_LIBRARY_PATH to include the libraries location. For example, if the Intel MKL libraries are in the /opt/intel/mkl/10.1.0.015/lib/32 directory then the following command line can be used (assuming a bash shell):
Adding shared libraries environment path / common runtime errors
For more complete information about compiler optimizations, see our Optimization Notice.