This is the mail archive of the
mailing list for the Cygwin project.
Re: STL std::random_shuffle behavior fails with lrand48
- From: Jim Kleckner <jek-cygwin at kleckner dot net>
- To: sailorleo at isonews2 dot com
- Cc: cygwin at cygwin dot com
- Date: Tue, 03 Aug 2004 23:16:21 -0700
- Subject: Re: STL std::random_shuffle behavior fails with lrand48
- References: <410AEF64.firstname.lastname@example.org> <410B038D.email@example.com>
Arturus Magi wrote:
Jim Kleckner wrote:
Version of cygwin is current (see attached file
for all version stamps)
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):
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
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@reid-ws reid]$ g++ xxx.cpp
[reid@reid-ws reid]$ ./a.out
0 1 2 3 4 5 6
1 4 2 3 5 6 0
0 6 2 1 4 5 3
0 1 3 6 5 4 2
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html