This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]