[Rcpp-devel] Specify Rcpp header location in Makevars

Romain Francois romain at r-enthusiasts.com
Wed Jul 29 17:29:40 CEST 2015


You need 

LinkingTo: Rcpp

As per the current documentation. 

Romain

Envoyé de mon iPhone

> Le 29 juil. 2015 à 17:19, "jsmith5889 at yahoo.com" <jsmith5889 at yahoo.com> a écrit :
> 
> Hi,
> 
> Is there a way to automatically specify the location of the Rcpp include
> directory (for Rcpp.h) in Makevars?
> 
> In my Makevars, I use the following compile command:
> 
> %.o: %.cpp $(cpp_sources)
>    $(CXX) $(PKG_CXXFLAGS) $<
> 
> 
> I also specified "Imports: Rcpp" in DESCRIPTION, but it does not appear
> to automatically add the right flags to the compile command.
> 
> I am looking for something that could work similarly to Rscript -e
> "Rcpp:::LdFlags()", which used to export the Rcpp library flags.
> 
> Any ideas are greatly appreciated!
> 
> Thanks!
> Lutz
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel


More information about the Rcpp-devel mailing list