Skip to content
Prev 2199 / 10988 Next

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

Hello Dirk,

thanks for your quick answer.
Due to my, unfortunately, profound lack of knowledge in this area I have to ask some additional (and probably quite stupid) questions regarding what you replied to me - see in the text below.

Am 24.04.2011 um 20:12 schrieb Dirk Eddelbuettel:
OK, so I will check the FAQs of the MinGW documentation.
How do I write a simple wrapper via R  (without using Rcpp) for a function from the SDK? Or where can I start reading how to do that? 
Could you give me or point me to a code-example?
The "linker instructions", are they written in the file Makevars.win? If not, where are they?
So, then in the right place, what EXACTLY should I then write in there for the .lib called e.g. "plastic.lib"?
(And how do I write relative paths?)
--- that means, once the missing .lib - file is correctly linked, or? --
Sorry, and again my knowledge in this field is rather bad:
how do I expand those flags, how do I add PKG_CXXFLAGS to the Makevars.win file?
Could you give me, please, an exact example of what I would have to write for a library called e.g. "plastic.lib"?
Thank you very much for your efforts,
with kind regards,
Bernhard