This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Possible bug in gsl_matrix (GSL 1.0)
- From: Hamish Rose <h dot rose at phys dot canterbury dot ac dot nz>
- To: gsl-discuss at sources dot redhat dot com
- Date: Fri, 14 Jun 2002 12:11:19 +1200 (NZST)
- Subject: Possible bug in gsl_matrix (GSL 1.0)
gsl_matrix seems to interact badly with the profiling functions in gcc.
When compiling the first matrices example program in the documentation (or
any program that includes gsl/gsl_matrix.h) I get a segmentation fault
before entering main().
ggc -v gives:
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
Compiler command is
gcc -g -pg -o mtest mtest.c -lgsl -lgslcblas -lm
Putting the following 3 lines before #include <gsl/gsl_matrix.h> prevents
the problem, but I'm afraid I'm not knowledgeable enough to track it further.
#define __GSL_MATRIX_INT_H__
#define __GSL_MATRIX_UINT_H__
#define __GSL_MATRIX_LONG_H__
--
Hamish Rose
To send me encrypted email, you'll need my PGP Public Key Block from
http://www.phys.canterbury.ac.nz/~physhgr/pgp.html