Core dumped with test prog.

Brian Gough bjg@network-theory.co.uk
Thu Sep 26 17:01:00 GMT 2002


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



More information about the Gsl-discuss mailing list