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: <41107F35.5020800@kleckner.net> Date: Tue, 03 Aug 2004 23:16:21 -0700 From: Jim Kleckner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MIME-Version: 1.0 To: sailorleo AT isonews2 DOT com CC: cygwin AT cygwin DOT com Subject: Re: STL std::random_shuffle behavior fails with lrand48 References: <410AEF64 DOT 90409 AT kleckner DOT net> <410B038D DOT 5010507 AT isonews2 DOT com> In-Reply-To: <410B038D.5010507@isonews2.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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. === From a gentoo user: My gcc and g++ versions are 3.3.3 20040412. [reid AT reid-ws reid]$ g++ xxx.cpp [reid AT reid-ws reid]$ ./a.out changes before: 0 1 2 3 4 5 6 changes after: 1 4 2 3 5 6 0 changes after: 0 6 2 1 4 5 3 changes after: 0 1 3 6 5 4 2 -- 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/