This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: parse error help
> > +++++++++++++++++++++++++++++++++++++++++
> > sample.c: In function `main':
> > sample.c:19: parse error before "double"
> > ++++++++++++++++++++++++++++++++++++++++++
>
> I think this is your problem...
>
> [...]
> for (i=0; i<n; i++)
> {
> unsigned int k = double gsl_rng_uniform_pos (const
> ^^^^^ gsl_rng*r);
>
> I think you meant to cast it from a double to an int...like
>
> unsigned int k = (double) gsl_rng_uniform_pos (const gsl_rng *r);
Could we have that deleted for my sake, please? :-)
Elfyn
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/