bug-gsl
[Top][All Lists]
Advanced

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

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


From: Huifeng SHEN
Subject: Re: [Bug-gsl] may be it is a bug when i use GSL in VC++6.0
Date: Tue, 18 Sep 2007 06:53:09 +0800
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

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
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gsl










reply via email to

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