Skip to content
Prev 2209 / 10988 Next

[Rcpp-devel] How to link a .lib file in a rcpp-package in a Windows environment?

Hi Dirk,


Am 25.04.2011 um 04:54 schrieb Dirk Eddelbuettel:
That worked, everything runs smoothly then. :-)
:-) Success!!
I studied, found out what most of that means, and -- voila --  in the end the (very simple!!  :-)) )  working version of Makevars.win is like that:

PKG_LIBS = Plastic.lib $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "Rcpp:::LdFlags()")
with Plastic.lib, which resides directly in src, being the library I wanted to link against.

It works, I can invoke the first simple functions from within R, I can enumerate the connected devices, clear the list and give back build-numbers and the like.

(But I fear the next questions are already forming on the horizon.....    :-(   )

Thank you very much for your help here,
with kind regards,
Bernhard Pollner





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110426/0a9cfceb/attachment.htm>