[Rinside-commits] compilation problem with examples

Christian Ledergerber ledergec at gmail.com
Thu Jan 21 12:58:08 CET 2010


Hi,

I would like to use the RInside package. When running make in the examples
directory /Library/Frameworks/R.framework/Resources/library/RInside/examples
I have two problems.

First: whenever running R it first writes "WARNING: ignoring environment
value of R_HOME" causing all sorts of compilation problems.

Second: after manually curing the above issue I get compilation errors of
the following type:

make
g++ -I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/library/Rcpp/lib
-I/Library/Frameworks/R.framework/Resources/library/RInside/lib -g -O2 -Wall
-I/usr/local/include -s  rinside_sample0.cpp
-F/Library/Frameworks/R.framework/.. -framework R
-L/Library/Frameworks/R.framework/Resources/lib -lRblas
-L/Library/Frameworks/R.framework/Resources/lib -lRlapack
-L/Library/Frameworks/R.framework/Resources/library/Rcpp/lib -lRcpp
-L/Library/Frameworks/R.framework/Resources/library/RInside/lib -lRInside -o
rinside_sample0
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RObject.h:
In member function ‘bool Rcpp::RObject::Rf_isObject() const’:
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RObject.h:187:
error: no matching function for call to ‘Rcpp::RObject::Rf_isObject(SEXPREC*
const&) const’
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RObject.h:187:
note: candidates are: bool Rcpp::RObject::Rf_isObject() const
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RObject.h:
In member function ‘bool Rcpp::RObject::Rf_isS4() const’:
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RObject.h:192:
error: no matching function for call to ‘Rcpp::RObject::Rf_isS4(SEXPREC*
const&) const’
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RObject.h:192:
note: candidates are: bool Rcpp::RObject::Rf_isS4() const
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/IntegerVector.h:
In member function ‘int Rcpp::IntegerVector::Rf_length() const’:
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/IntegerVector.h:49:
error: no matching function for call to
‘Rcpp::IntegerVector::Rf_length(SEXPREC* const&) const’
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/IntegerVector.h:49:
note: candidates are: int Rcpp::IntegerVector::Rf_length() const
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/IntegerVector.h:
In member function ‘int Rcpp::IntegerVector::size() const’:
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/IntegerVector.h:54:
error: no matching function for call to
‘Rcpp::IntegerVector::Rf_length(SEXPREC* const&) const’
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/IntegerVector.h:49:
note: candidates are: int Rcpp::IntegerVector::Rf_length() const
/Library/Frameworks/R.framework/Resources/library/Rcpp/lib/Rcpp/RawVector.h:
In member function ‘int Rcpp::RawVector::Rf_length() const’:
.
.
.
.

Could you please let me know whether you know of this issue and how it could
be solved?

Thanks,

Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r-forge.r-project.org/pipermail/rinside-commits/attachments/20100121/62670fbd/attachment.htm 


More information about the Rinside-commits mailing list