Using 3rd party header files with Rcpp

后端 未结 7 1930
生来不讨喜
生来不讨喜 2020-12-12 15:18

I have a header file called coolStuff.h that contains a function awesomeSauce(arg1) that I would like to use in my cpp source file.

Directo

相关标签:
7条回答
  • 2020-12-12 15:57

    This worked for me in Windows:

    Sys.setenv("PKG_CXXFLAGS"='-I"C:/boost/boost_1_66_0"')

    Edit: Actually you don't need this if you use Boost Headers (thanks to Ralf Stubner):

    // [[Rcpp::depends(BH)]]

    0 讨论(0)
提交回复
热议问题