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

Bernhard Pollner bernhard at bpollner.net
Tue Apr 26 18:38:06 CEST 2011


Hi Dirk,

>  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()")
> 

> Perfect!!  No transformation needed for Plastic.lib, ie no export table
> business and all that as discussed in the MinGW FAQ?

Actually, I did not read the MinGW FAQ, I got this idea from studying the source code of the "mvabund" package, and by having learnt what -l, -L and -I means for the compiler.




> We'll take it one step at a time. Just how you were able to decompose this
> problem into manageable chunks, we'll just do the same with the next apparent roadblock.

Great. 
I suspect you´ll hear from me rather soon....    :-)

with a bow from Innsbruck, Austria,
Bernhard




More information about the Rcpp-devel mailing list