Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <01ac01c30a87$8f855ad0$a86086d9@ellixia> From: "Elfyn McBratney" To: "cygwin" References: <20030424171421 DOT 5586 DOT qmail AT web10104 DOT mail DOT yahoo DOT com> <009201c30a86$cb114d30$a86086d9 AT ellixia> Subject: Re: parse error help Date: Thu, 24 Apr 2003 18:33:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 { > 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/