Skip to content
Prev 2309 / 10988 Next

[Rcpp-devel] Function does not compile on Mac OSX

And the error he gets is:

Error in compileCode(f, code, language = language, verbose = verbose) :
  Compilation ERROR, function(s)/method(s) not created! file786264e8.cpp: In
function ?SEXPREC* file786264e8()?:
file786264e8.cpp:33: error: ISO C++ says that these are ambiguous, even
though the worst conversion for the first is better than the worst
conversion for the second:
/Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/include/Rcpp/sugar/operators/plus.h:451:
note: candidate 1: Rcpp::sugar::Plus_Vector_Primitive<RTYPE, NA, T>
operator+(const Rcpp::VectorBase<RTYPE, NA, VECTOR>&, typename
Rcpp::traits::storage_type<RTYPE>::type) [with int RTYPE = 14, bool NA =
true, T = Rcpp::Vector<14>]
file786264e8.cpp:33: note: candidate 2: operator+(SEXPREC*, int) <built-in>
make: *** [file786264e8.o] Error 1
In addition: Warning message:
running command '/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB
file786264e8.cpp 2> file786264e8.cpp.err.txt' had status 1

2011/5/16 Sacha Epskamp <sacha.epskamp at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110516/adda394f/attachment-0001.htm>