Hi,

If you are under windows, maybe you have to add the GSL_DLL preprocessor
flag.

Regards,

Olivier

2008/8/14 Abbas Alhakim <[EMAIL PROTECTED]>

> Thank you Mohammad, your email confirms that the problem is with Bloodshell
> Dev-C++. Actually I downloaded gsl to my unix folder and now it works.
>
> Abbas
>
> -----Original Message-----
> From: Mohammad Khaleghi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2008 11:07 AM
> To: Abbas Alhakim; [email protected]
> Subject: Re: [Help-gsl] gsl_rng_alloc function not working!
>
> Hi,
>
> I am also not an expert here. However, I have used gsl_rng_alloc() with the
> default setup and it has worked (in linux).
>
> gsl_rng_env_setup();
> const gsl_rng_type* type = gsl_rng_default;
> gsl_rng* r = gsl_rng_alloc(type);
>
> sorry if this could be of no use.
>
> regards, Mohammad
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: "Abbas Alhakim" <[EMAIL PROTECTED]>
> > Gesendet: 14.08.08 15:27:50
> > An: <[email protected]>
> > Betreff: [Help-gsl] gsl_rng_alloc function not working!
>
>
> > Hi
> >
> >
> >
> > I am trying to initialize an RNG using the function gsl_rng_alloc( )
> > defined in gsl_rng.h. the line of code:
> >
> > gsl_rng * r = gsl_rng_alloc (gsl_rng_taus);
> >
> > (which I copies and pasted from an example in the library website) is
> > stopping the debugger with this message:
> >
> > An access violation (Segmentation Fault) is raised in your program.
> >
> > I am using Dev-C++. I appreciate any insight.
> >
> >
> >
> > _______________________________________________
> > Help-gsl mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/help-gsl
> >
>
>
> _______________________________________________________________________
> Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
> kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220
>
>
>
> _______________________________________________
> Help-gsl mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gsl
>
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to