delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=2.7 required=5.0 tests=BAYES_50,MISSING_MIMEOLE |
X-Spam-Check-By: | sourceware.org |
X-MC-Sender: | ericlin AT fsshl DOT zzn DOT com |
X-MC-IPAddr: | wnat.mailcentro.com [208.67.179.158] |
X-Version: | Mailcentro(english) |
X-SenderIP: | 76.87.101.11 |
X-SenderID: | 12592607 |
X-RealDate: | 9/8/2010 10:35:51 AM |
From: | "eric lin" <ericlin AT fsshl DOT zzn DOT com> |
Message-Id: | <CD7CFA1134410784EA0A1AA09A4D2A5B@ericlin.fsshl.zzn.com> |
Date: | Wed, 8 Sep 2010 10:35:54 -0700 |
To: | cygwin AT cygwin DOT com |
Subject: | rand() was not declared in this scope, please help‏ |
Mime-Version: | 1.0 |
X-MC-Filter: | 7.6.5 |
X-MC-Filter-AntiVirus: | Scanned for virus - Status 0 |
X-MC-FilterSkip: | 0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
dear cygwin/gcc users: I compile a simple code which i copied from a book, "The Complete Reference of C++" Fourth Edition by Herbert Schildt in page 575, rand() which is clearly not be included in #include <iostream> I tried #inlcude <cmath> it still not compile, i.e. same compile error please help(see which lib I should include) /* I tried in ubuntu linux on my laptop, it also not compile by same reason */ Eric -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |