[Rd] building a package - shared library loading problem

From: Konrad Smolinski <konrad.smolinski_at_eui.eu>
Date: Wed, 19 Sep 2007 19:25:41 +0200


Dear All,
I am trying to write my first R package and I bump into loading shared library problem( working on Mac OS X 10.4.10 as well as Linux Ubuntu). I want to makes use of (incorporate) a shared library matchinglib.so in the package. Library was created via R CMD -SHLIB. Following 'Writing R Extensions' I place matchinglib.so in the 'libs' directory and use NAMESPACE file with an entry: useDynLib(matchinglib)

Now, executing 'R CMD check mypackage' I face the following error on OS X:


It looks like this package has a loading problem: see the messages for details.



The same problem occurs under Linux.

Shall I specify a direct path to libs or modify NAMESPACE?

konrad

---
Konrad Smolinski
Economics Department
European University Institute
Badia Fiesolana
Via dei Roccettini 9
I-50014 San Domenico di Fiesole (FI)
ITALY

konrad.smolinski_at_eui.eu
konrad.smolinski_at_gmail.com

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 19 Sep 2007 - 17:30:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Sep 2007 - 20:42:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.