You need
LinkingTo: Rcpp
As per the current documentation.
Romain
Envoyé de mon iPhone
Le 29 juil. 2015 à 17:19, jsmith5...@yahoo.com jsmith5...@yahoo.com a
écrit :
Hi,
Is there a way to automatically specify the location of the Rcpp include
directory (for Rcpp.h) in Makevars?
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
Thanks Dirk and Romain for your comments! CLINK_CPPFLAGS did the trick.
Dirk, I understand that it might seem sub-optimal to define my own
compile commands: part of my project is in cuda for GPU-based
parallelization, and I manually set the compile commands to compile my
cuda source files with
On 29 July 2015 at 17:19, jsmith5...@yahoo.com wrote:
| Is there a way to automatically specify the location of the Rcpp include
| directory (for Rcpp.h) in Makevars?
As Romain said, add LinkingTo: Rcpp to your DESCRIPTION.
| In my Makevars, I use the following compile command:
|
| %.o: %.cpp