2014-03-01 56 views
0

在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 ++中链接到它?在Mac上,Rcpp没有lib文件夹

谢谢!

+2

从'?LdFlags',包不再构建或发布用户库。 – josliber

回答

1

@josilber的评论完全正确。在0.11.0版本中,我们不再需要面向Rcpp的面向用户的库。正如其NEWS文件所述:

\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