Thanks Brian,
It was improper usage on my part.
Here is the result of compiling with -Wall:

[EMAIL PROTECTED] 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.


_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to