[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] For help about the use of "gsl_rng_alloc" on windows
From: |
张乐华 |
Subject: |
[Help-gsl] For help about the use of "gsl_rng_alloc" on windows |
Date: |
Wed, 17 Oct 2007 09:54:14 +0800 (CST) |
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] For help about the use of "gsl_rng_alloc" on windows,
张乐华 <=