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: | <20030424171421.5586.qmail@web10104.mail.yahoo.com> |
Date: | Thu, 24 Apr 2003 10:14:21 -0700 (PDT) |
From: | Suetlam Chung <slfchung AT yahoo DOT com> |
Subject: | parse error help |
To: | cygwin cygwin <cygwin AT cygwin DOT com> |
MIME-Version: | 1.0 |
Hi guys, I am compiling the following program under cygwin\usr\bin (my OS is Win2K) but it shows that +++++++++++++++++++++++++++++++++++++++++ sample.c: In function `main': sample.c:19: parse error before "double" ++++++++++++++++++++++++++++++++++++++++++ my program is on below and my program is intend to returns a positive double prescision floating point number uniformly distrbute in the range (0,1) excluding both 0.0 and 1. +++++++++++++++++++++++++++++++++++++++++++ #include <stdio.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <math.h> int main (void) { const gsl_rng_type * T; gsl_rng * r; int i, n =10; double mu = 3.0; gsl_rng_env_setup(); T = gsl_rng_default; r = gsl_rng_alloc (T); for (i=0; i<n; i++) { unsigned int k = double gsl_rng_uniform_pos (const gsl_rng*r); printf(" %u", k); } printf("\n"); return 0; } +++++++++++++++++++++++++++++++++++++++++ Many thanks Felix __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com -- 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 |