This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Errors
- To: "J.R. Sanchez" <jsanchez at argenet dot com dot ar>
- Subject: Re: Errors
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Tue, 28 Aug 2001 12:52:43 +0100 (BST)
- Cc: gsl-discuss at sources dot redhat dot com
- References: <3B8B7E74.DFAC8B11@argenet.com.ar>
J.R. Sanchez writes:
> I'm using gsl 0.9.1. I've successfully compiling
> and installing it.
> I've linked my program to BLAS, and I got the
> following message from the linker:
>
> gcc -c rn1.c
> gcc -O2 -o rn1 rn1.o -lgsl -lgslcblas -mpentium -W -Wall
> /usr/local/lib/libgsl.so: undefined reference to `atexit'
> collect2: ld returned 1 exit status
> make: *** [rn1] Error 1
I haven't seen this before. You could try using the 'nm' command on
libgsl.so to where it makes reference to atexit. There aren't any
references in gsl itself.
bjg|debian> cd ~/gsl; grep atexit */*.{c,h}
bjg|debian>
so maybe it is a problem with linking shared libraries.