Can you figure out the gsl version. I can not repeat your error in
VC2005 and gsl 1.8 (compiled by myself). And my OS is Windows XP SP2. As
the dll you use are libgsl.dll, you maybe use gsl from gnuwin32.sf.net.
I use VC 7.1 (VC Toolkit) and gnuwin32's gsl to compile your code, the
same problem happen (As gnuwin32 does not provide a lib file for VC, I
generate it by "LIB /DEF:gsldll.def /MACHINE:x86").
The gsl in gnuwin32 was compiled by gcc. The gnuwin32 also provide the
source code they modified and it contain a VC8 project.
?????? ????:
#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;
}
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl