Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.21.0005041353220.9734-100000@boromir.ci.tuwien.ac.at>
Date: 2000-05-04T11:57:10Z
From: Torsten Hothorn
Subject: dyn.load does not work
In-Reply-To: <391166B3.CC79F09B@rhi.hi.is>

On Thu, 4 May 2000, Helgi Tomasson wrote:

> Dear R-people
> 
> Could someone give me a hint why dyn.load does not work
> 
> > system("ls dyntilr.o")
> dyntilr.o
> >
> 
> > dyn.load("dyntilr.o")
> Error in dyn.load(x) : unable to load shared library
> "/home/helgi/dyntilr.o"

is dyntilr.o s shared library? I would expect dyntilr.so to be one. Under
Linux,

$> gcc -c dyntilr.c -o dyntilr.o
$> ld -shared -o dyntilr.so dyntilr.o

should work, or, much more simpler, create a package, put the sources in
./src and say

$> R INSTALL -l my_lib_path my_R_package

Torsten

> 
> regards
> 
> Helgi
> 
> --
> Helgi Tomasson                                       FAX:  354-552-6806
> University of Iceland                                PHONE:354-525-4571
> Faculty of Economics and Business Administration     email:helgito at rhi.hi.is
> Oddi v/ Sturlugotu
> IS-101 Reykjavik
> ICELAND
> 
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._