An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111110/26a7e718/attachment.pl>
Building a statically-linked extension?
4 messages · Tyler Pirtle, Brian Ripley
On Thu, 10 Nov 2011, Tyler Pirtle wrote:
Hi there, I'm writing an R extension that has a C component that relies on two third party libraries that I'm bundling with the extension. I'd like to statically link my resulting extension so that I can rely on the bundled versions of the libraries I'm distributing, so there's two questions - 1, does R allow statically linked C extensions to be used at runtime?
Yes
2, are there any standard ways of having R build my extension statically?
Yes. If you want to know more, follow the posting guide: this is not an R-help topic, the missing 'at a minimum' information is vital ....
Thanks, Tyler [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at 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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111111/7377cf91/attachment.pl>
On Fri, 11 Nov 2011, Tyler Pirtle wrote:
On Fri, Nov 11, 2011 at 2:09 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk>
wrote:
On Thu, 10 Nov 2011, Tyler Pirtle wrote:
Hi there,
I'm writing an R extension that has a C component
that relies on two third
party libraries that I'm bundling
with the extension.
I'd like to statically link my resulting extension
so that I can rely on
the bundled versions of the libraries I'm
distributing, so there's two questions -
1, does R allow statically linked C extensions to be
used at runtime?
Yes
2, are there any standard ways of having R build my
extension statically?
Yes.
If you want to know more, follow the posting guide: this is not an
R-help topic, the missing 'at a minimum' information is vital ....
Apologies for spamming R-help, I suppose this should have gone to R-devel. I
can't ever remember the difference between
the two. So, Professor, if I re-post to R-devel would you be willing to
reveal any more detail for me? ;)
I also apologize for a lack of additional information, I'm happy to provide
you with any, but I'm not exactly sure
what else I can offer..I just want to build a statically linked R extension,
and it doesn't seem to be covered in "Writing R
Extensions". You seem to know the answer, any pointers would be greatly
appreciated.
You will need to tell us your OS, for a start.
Tyler
?
Thanks,
Tyler
? ? ? ?[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained,
reproducible code.
--
Brian D. Ripley, ? ? ? ? ? ? ? ? ?ripley at 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
Brian D. Ripley, ripley at 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