Re: [Help-gsl] unable to link and run a simple program

2018-04-10 Thread Mohammad Akhlaghi
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.

Re: [Help-gsl] unable to link and run a simple program

2018-04-09 Thread Vasu Jaganath
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

[Help-gsl] unable to link and run a simple program

2018-04-09 Thread Vasu Jaganath
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