[Rd] Windows 64bit package build requires underscore hack?

From: Dominick Samperi <djsamperi_at_gmail.com>
Date: Mon, 05 Jul 2010 19:53:33 -0400


After much tinkering I managed to build packages using the 64bit version of R with the help of hints from
http://www.murdoch-sutherland.com/Rtools/ and
http://www.stats.ox.ac.uk/~ripley/Win64/W64porting.html and
R-admin Manual.

But a hack was required, and this seems to be related to a comment about underscores at the end of the second reference above (but this comment is about FUTURE changes in R starting with 2.12.x, and I'm not sure how it applies to the current problem using 2.11.1).

If I simply follow the instructions of the first reference I get lots of "cannot export / symbol not defined" errors because by default the leading underscore is stripped off during the shared library build process, specifically, all names in tmp.def (created in share/winshlib.mk) do not contain a leading underscore.

If I modify share/winshlib.mk so that the leading underscore is not stripped everything works fine.

Have I missed some documentation explaining what is going on here?


        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 05 Jul 2010 - 23:58:19 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 Tue 06 Jul 2010 - 15:10:12 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