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" Message-Id: Date: Wed, 8 Sep 2010 10:35:54 -0700 Content-Type: text/plain; charset=iso-8859-1 To: cygwin AT cygwin DOT com Subject: rand() was not declared in this scope, please help‏ Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: 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 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 I tried #inlcude 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