Dear,
I am using gsl_rng_alloc in a C-coded python extension on windows XP. The
extension compiles and links fine but any call to gsl_rng_alloc causes a fatal
error. codes are as follows:
#include <stdio.h>#include <gsl/gsl_rng.h>#include <gsl/gsl_randist.h>
int main (void){ const gsl_rng_type * T; int i; gsl_rng * r;
printf("running1....\n"); r = gsl_rng_alloc(gsl_rng_mt19937_1999);
printf("running2....\n"); for(i = 0;i<10;i++) { double v =
gsl_ran_flat(r,1,12); printf("number is %d\n",v); } gsl_rng_free (r);
return 0;}
crashes happened at " r = gsl_rng_alloc(gsl_rng_mt19937_1999);"
Any suggestions?
Thanks,
姓名:张乐华
单位:北京邮电大学计算机学院
___________________________________________________________
雅虎邮箱,终生伙伴!
http://mail.yahoo.com.cn/
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl