Yes that was the problem. ldconfig did not fix it either; so I looked
into it.
Attached is a new script. (very lazy one) with tab=bat
Here is
ldconfig -p |egrep libgsl
libgslcblas.so.0 (libc6,x86-64) => /usr/local/lib/libgslcblas.so.0
libgslcblas.so.0 (libc6,x86-64) => /usr/lib/libgslcblas.so.0
libgslcblas.so (libc6,x86-64) => /usr/local/lib/libgslcblas.so
libgslcblas.so (libc6,x86-64) => /usr/lib/libgslcblas.so
libgsl.so.0 (libc6,x86-64) => /usr/local/lib/libgsl.so.0
libgsl.so.0 (libc6,x86-64) => /usr/lib/libgsl.so.0
libgsl.so (libc6,x86-64) => /usr/local/lib/libgsl.so
libgsl.so (libc6,x86-64) => /usr/lib/libgsl.so
All of the /usr/lib/ are old old dec 2013 --
The /usr/local/lib are current
I have forgotten (if I ever knew) why the xxx.a files instead of xxx.so ?
Ray
On 11/01/2015 04:12 PM, Patrick Alken wrote:
gcc -v -g -Wall -o interp2d interp2d.c /path/to/new/libgsl.a -lgslcblas -lm
--
Two views on life:
life is an art not to be learned by observation.
George Santayana:Interpretations of Poetry and Religion
It's kinda nice to participate in your life
Raymond Rogers
#!/bin/bash
# The following might have to be changed
cd /opt/gsl-1.99.90/doc/examples
#
# Verbose record of compiler in interp2d.lst
gcc -v -g -Wall -o interp2d interp2d.c -lgsl -lgslcblas -lm &>interp2d.lst
#
# You will notice that everything looks okay, to me, in interp2d_locate.lst
locate interp2d.a &> interp2d_locate.lst
# Manually examing my interp2d_locate.lst and checking
ls -ldt /usr/lib/libgsl.a
# Response
-rw-r--r-- 1 root root 4668446 Dec 12 2013 /usr/lib/libgsl.a
ls -ldt /usr/local/lib/libgsl.a
# Response
-rw-r--r-- 1 root root 17889314 Oct 31 17:44 /usr/local/lib/libgsl.a
# and
gcc -g -Wall -o interp2d interp2d.c /usr/local/lib/libgsl.a -lgslcblas -lm
# works.
# ldconfig check : it doesn't work against xx.a files though
ldconfig -p |egrep libgsl