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 Date: Wed, 4 Aug 2004 10:02:01 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: STL std::random_shuffle behavior fails with lrand48 Message-ID: <20040804140201.GC15068@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <410AEF64 DOT 90409 AT kleckner DOT net> <410B038D DOT 5010507 AT isonews2 DOT com> <41107F35 DOT 5020800 AT kleckner DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41107F35.5020800@kleckner.net> User-Agent: Mutt/1.4.1i On Tue, Aug 03, 2004 at 11:16:21PM -0700, Jim Kleckner wrote: >Arturus Magi wrote: > >>Jim Kleckner wrote: >> >>>Version of cygwin is current (see attached file >>>for all version stamps) >>>gcc 3.3.1-3 >>>gcc-g++ 3.3.1-3 >>> >>>version of gcc/g++ on Linux is 2.96. >>> >>>The test program is attached as is cygcheck output. >>> >>>To run it just type (note that -mno-cygwin is *not* used): >>>g++ xxx.cpp >>>./a.exe >>> >>>Is this a configuration issue? Or does lrand48 not work? >>>Or is it a long vs. int type mismatch? >>> >> >>Try upgrading the version of gcc on the Linux box before comparing. >>There are a number of differences between gcc2 and gcc3 that may be >>affecting things. > >This succeeds on an up to date Gentoo system. So the problem appears >to be local to cygwin. cygwin uses the newlib library for all of its math operations. The mailing list for newlib is: newlib at sourceware dot org cgf -- 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/