This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]