| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <009201c30a86$cb114d30$a86086d9@ellixia> |
| 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> |
| References: | <20030424171421 DOT 5586 DOT qmail AT web10104 DOT mail DOT yahoo DOT com> |
| Subject: | Re: parse error help |
| Date: | Thu, 24 Apr 2003 18:25:21 +0100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
> +++++++++++++++++++++++++++++++++++++++++
> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |