bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] may be it is a bug when i use GSL in VC++6.0


From: 唐应成
Subject: [Bug-gsl] may be it is a bug when i use GSL in VC++6.0
Date: Sun, 16 Sep 2007 17:34:15 +0800 (CST)

#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int main (void)
{
 double x = 5.0;
 double y = gsl_sf_bessel_J0 (x);
 printf ("J0(%g) = %.18e\n", x, y);
 return 0;
}
the above program can work well,but the following can't,I can not figure out 
the reason.would you like to help me,please? the VC++6.0 give a error" 
Unhandled exception in me.exe (LIBGSL.DLL):0xc0000005:Access Violation" 
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
    
int main (void)
{
 
 gsl_rng *r;
 gsl_rng_env_setup();
 r = gsl_rng_alloc(gsl_rng_mt19937);
 gsl_ran_gaussian (r,1.0);
 return 0;
}  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]