[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] gsl_ran_flat: bug or improper usage ?
From: |
Brad Bell |
Subject: |
Re: [Bug-gsl] gsl_ran_flat: bug or improper usage ? |
Date: |
Mon, 18 Dec 2006 09:32:57 -0800 (PST) |
Thanks Brian,
It was improper usage on my part.
Here is the result of compiling with -Wall:
address@hidden lib]$ ./gsl_ran_flat.sh
gcc -g -Wall gsl_ran_flat.c -L/usr/lib -lgsl -lgslcblas -lm -o
gsl_ran_flat
gsl_ran_flat.c: In function main:
gsl_ran_flat.c:26: warning: implicit declaration of function gsl_ran_flat
./gsl_ran_flat uniform
gamma = 1.000000
./gsl_ran_flat flat
gamma = nan
Here is the result when the the statement
# include <gsl/gsl_randist.h>
is added to the list of includes:
gcc -g -Wall gsl_ran_flat.c -L/usr/lib -lgsl -lgslcblas -lm -o
gsl_ran_flat
./gsl_ran_flat uniform
gamma = 1.000000
./gsl_ran_flat flat
gamma = 1.000000
On Fri, 15 Dec 2006, Brian Gough wrote:
Brad Bell wrote:
I seem to be getting some strange results when I use gsl_ran_flat on some
systems (and not on other systems). The attached bash script
...
I think you just have a missing header file (gsl_randist.h) for that
function. Use gcc -Wall to detect that.