From: ripley@stats.ox.ac.uk
Date: Sat 21 Dec 2002 - 04:52:44 EST
Message-id: <Pine.LNX.4.31.0212201752180.6247-100000@gannet.stats>
On Fri, 20 Dec 2002, Timur Elzhov wrote:
> On Fri, Dec 20, 2002 at 04:56:31PM +0000, ripley@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)?
It's not impossible, but it is not straightforward.
-- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595______________________________________________ R-help@stat.math.ethz.ch mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:59 EST