----- Original Message ----- 
From: "Chris Marshall" <[email protected]>
To: "Sisyphus" <[email protected]>
Cc: "Steve Cicala" <[email protected]>; <[email protected]>
Sent: Thursday, May 28, 2009 12:09 PM
Subject: Re: [Perldl] installing on 64-bit Windows 7 (pmitive.t failure)


> Sisyphus wrote:
>>
>> Looks like primitive.t failure is simply the result of srand not behaving 
>> as expected. .... The burning question is, of course, "Why are yours 
>> different?"
>
> I did a quick search on MSDN for rand/srand on vista and
> found discussion of rand_s to generate pseudorandom integers
> in the range 0 to UINT_MAX and does *not* use the seed
> provided by srand.
>
> To know if that is the issue I guess the source for the ASPerl
> implementation could to be investigated.
>

The instriguing thing is that both myself and the op are using the same 
build of perl - namely an ActiveState build of perl 5.10. (At least I 
*think* Steve is running ActivePerl - please let me know if that's not so, 
Steve. It's probably even the exact same build - I have build 1004, not sure 
about Steve's.)

The only difference is that we're using different compilers to build PDL - 
mine is based on VC 2005 (and is the same compiler that built our perls), 
the op's is based on VC 2008. I'll have to get hold of a compiler that 
reproduces the behaviour that the op is getting - it's the only hope *I* 
would have of working out what's going on. I just wasted 3 hours downloading 
what I thought was an x64 version of VC 2008, only to find it's 32-bit. (The 
actual compiler that the op has will probably take me 2 days to download - 
even longer if I get it wrong and download another 32-bit version.)

So ... if our perls are identical, I think the difference can only arise in 
what our respective compilers are making of the PDL source. I think the 
rand/srand/rand_s issues you've mentioned above could well have some bearing 
on that.

(Btw, the compiler I have is the ideal compiler to be using with x64 
ActivePerl, and it *was* freely available from MS. Unfortunately, it no 
longer seems to be available - all links now lead to the VC 2008 version. 
Typical bloody MicroSoft.)

Cheers,
Rob 


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to