This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Core dumped with test prog.
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: "F. Schoenahl" <ceo at free dot fr>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Thu, 26 Sep 2002 19:40:53 +0100 (BST)
- Subject: Re: Core dumped with test prog.
- References: <20020926122335.3c068996.ceo@free.fr>
F. Schoenahl writes:
> I receive a core dumped when trying to execute a small binary (GCC 2.95.3, Solaris Sparc 2.7) compiled with
> gcc -g main.c -o sample -lgsl -lgslcblas
> main.c is the example program of the documentation (bessel_sf_J0).
> Program received signal SIGSEGV, Segmentation fault.
> 0xff31a958 in __do_global_ctors_aux () from /usr/local/lib/libgsl.so.0
> Any help?
Try explicitly linking with the static version library
gcc -g main.c -o sample /usr/local/lib/libgsl.a /usr/local/lib/libgslcblas.a
to see if the problem is related to shared libraries on Solaris.
regards
Brian