This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: parse error help
- From: "Elfyn McBratney" <elfyn-cygwin at exposure dot org dot uk>
- To: "cygwin" <cygwin at cygwin dot com>,"Suetlam Chung" <slfchung at yahoo dot com>
- Date: Thu, 24 Apr 2003 18:25:21 +0100
- Subject: Re: parse error help
- References: <20030424171421.5586.qmail@web10104.mail.yahoo.com>
> +++++++++++++++++++++++++++++++++++++++++
> 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);
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/