Skip to content
Back to formatted view

Raw Message

Message-ID: <20021220171357.GA31437@pcf004.jinr.ru>
Date: 2002-12-20T18:11:02Z
From: Timur Elzhov
Subject: GetRNGstate() crashes with 'Segmentation fault'
In-Reply-To: <Pine.LNX.4.31.0212201648210.6208-100000@gannet.stats>

On Fri, Dec 20, 2002 at 04:56:31PM +0000, ripley at stats.ox.ac.uk wrote:

> > ~> ./a
> > Segmentation fault
> Whyever do you think that should work?
> 
> If you want to link against libR.so and call into R, you do need to
> initialize R, and you have not done so.
> 
> I also don't see that the program has any use.  The complicated ways to
> manipulate the random number generator are really only of any use from R
> code (via C code, perhaps).
Yes, this code was intended to be used from R!  I decided just to
test it this way ;) .  So, it seems to be impossible to write
separate program, link it against R library, test it (and then create
shared library to used from within R)?

Thanks.


WBR,
Timur.