Re: R-beta: linking c++ functions

Kung-Sik Chan (kchan@stat.uiowa.edu)
Sun, 14 Sep 1997 19:38:03 -0700


Date: Sun, 14 Sep 1997 19:38:03 -0700
From: Kung-Sik Chan <kchan@stat.uiowa.edu>
To: "Dennis J. Murphy" <dmurphy@cc.UManitoba.CA>
Subject: Re: R-beta: linking c++ functions

I am running R under Linux 2.0.28, with R installed following the
instructions that come with the R package, that is, using configure,
make and make install-help. I have only changed the config.site with
FC= option so to enable automatic detection of F77. I have no problems 
linking some of the contributed libraries to R. It seems that the
current problem might be specific to C++ functions.  

Kung-Sik

Quoting Dennis J. Murphy (dmurphy@cc.UManitoba.CA):
> Kung-Sik Chan writes:
> > 
> > >  dyn.load('/usr/lib/libg++.so')
> > > library(chaos)
> > /usr/local/lib/R/bin/R.binary: '/usr/local/lib/R/bin/' is not an ELF file
> > Error in dyn.load(system.file("lib", name)) : unable to load shared library "/us
> > r/local/lib/R/bin/"
> > > traceback()
> > [1] "library.dynam(\"chaos.so\")"   "eval(i, env)"
> > [3] "lib.source(file, env)"         ".library(name, lib = lib.loc)"
> > [5] "library(chaos)"  
> > 
> > I run R in the directory /usr/local/lib/R/bin, but the same error
> > message pops up if I run R in directory x, with the "/usr/local/lib/R/bin"
> > replaced by "x".
> > 
> Hi,
> 
> I'm no expert on this subject, but an ELF file would mean that your shared
> library was compiled under Solaris 2.x, while the fact that the R binary is
> not an ELF file would mean that it was not compiled under Solaris 2.x; for
> example, it might be a SunOS4.1.3 binary, whose objects are not in ELF format.
> Since you didn't mention the platform under which you are working, this is a
> psuedorandom guess on my part: you might get a more profound answer from 
> others by clearing mentioning the setup under which you're operating.
> 
> Good luck,
> 
> Dennis
> -- 
> Dennis Murphy, PhD cand.|It's what you learn after you|(204) 453-5834/474-8930
> Statistics, U. Manitoba | know it all that counts.    |dmurphy@cc.umanitoba.ca
> Winnipeg, MB Canada     |                 John Wooden |         On, Wisconsin!
> --------  When you come to a fork in the road, take it.   Yogi Berra  --------
> 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=