在Mac上,Rcpp没有lib文件夹

时间:2014-03-01 05:26:52

标签: c++ r macos rcpp rinside

在Mac OS X 10.7.5上,我在R 3.0.2上安装了Rcpp和RInside。如果我去RInside文件夹,我可以看到lib和libs文件夹。但是,在Rcpp文件夹中,只有包含Rcpp.so和Rcpp.so.dSYM目录的libs文件夹。 Rcpp是否应该包含libRcpp.a和libRcpp.dylib之类的lib文件夹,以便我可以用g ++链接到它?

谢谢!

1 个答案:

答案 0 :(得分:1)

@josilber的评论是完全正确的。在0.11.0版本中,我们不再需要面向用户的Rcpp库。正如其新闻档案所说:

  \item Functions provided/used by \cpkg{Rcpp} are now registered
  with R and instantiated by client package alleviating the new for
  explicit linking against \code{libRcpp} which is therefore no
  longer created.

RInside以及许多其他软件包已相应更新。来自RInside的ChangeLog:

* inst/examples/*/Makefile: Note that Rcpp (>= 0.11.0) no longer
requires the RCPPLIBS variable

    [...]

* src/Makefile: PKG_LIBS no longer points to Rcpp's library
* inst/examples/standard/Makefile: Note that Rcpp (>= 0.11.0) no
longer requires the RCPPLIBS variable