[Rd] LinkingTo on Windows

From: Thomas Baier <thomas.baier_at_logicals.com>
Date: Tue, 07 Oct 2008 09:29:43 +0200


Dear List,

R packages may specify a "LinkingTo" attribute to specify dependencies to the source code (mainly the header files) of other packages.

Unfortunately, it is not possible to also have a reference to the generated library (.dll on Windows) of the other package. So including a header file from another package to call an (exported) function will just not help.

I've tried to implement a workaround for my package rcom (depending on exported functions from rscproxy) by "manually" setting the library when linking, but unfortunately this does not work for me, when rscproxy gets installed into a different library (not the default one). OK, I could set the library path relative to the source drive and absolute for the standard library, so the "R CMD check" on CRAN is passed, but I don't think this would be a good solution.

Of course, I could implement true dynamic binding by getting a handle to the rscproxy.dll (which already has been loaded at the time of loading rcom) and getting out procedure addresses, but I don't think this is a good (general and portable) solution either.

How can this issue be addressed? How can I solve the problem of linking to another package's library (if possible by just using "LinkingTo")

Best regards,
Thomas Baier



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 07 Oct 2008 - 07:51:34 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 Fri 10 Oct 2008 - 06:30:18 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.

list of date sections of archive