[Rd] building a package - shared library loading problem

2007-09-19 Thread Konrad Smolinski
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

Re: [Rd] building a package - shared library loading problem

2007-09-19 Thread Simon Urbanek
Konrad, for a package you should not be using R CMD SHLIB at all. It is used internally and for non-package compilation. If you have a proper source package, you just install it using R CMD INSTALL. To be precise, assuming you have your package and source code in the foo directory you can