Hi Vasu,
This is a dynamic linker problem. Linking with shared libraries is done
every time you run a program. The compiler has indeed found the
libraries and that is why your `a.out' has been created.
The dynamic linker looks into the `LD_LIBRARY_PATH' shell variable to
find the libraries.
tried directly linking with /myinst/libgslcbals.so.0.0.0 and
libgsl.so.23.0.0
and tried directly linking with libgsl.so.0 and libglscblas.so.23.0 (the
symbolic links)
like this
gcc gsl_test.o /myinst/lib/libgslcblas.so.0 /myinst/lib/libgsl.so.23
/myinst is not a folder in /, my install
Hi,
I have installed gsl-2.4 in a custom directory.
using this blogpost
https://coral.ise.lehigh.edu/jild13/2016/07/11/hello/
when I try to run my a.out
I get the following message
./a.out: error while loading shared libraries: libgsl.so.23: cannot open
shared object file: No such file or