<div dir="ltr">Hello Kevin,<div><br></div><div>I use the least version Rcpp and RcppEigen. The github link is at</div><div><br></div><div><a href="https://github.com/uzhao/PACE">https://github.com/uzhao/PACE</a><br></div><div>
<br></div><div>Thanks,</div><div><br></div><div>JIanyang</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 1:36 PM, Kevin Ushey <span dir="ltr"><<a href="mailto:kevinushey@gmail.com" target="_blank">kevinushey@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jianyang,<br>
<br>
If you are willing to put your package on GitHub or somewhere else<br>
publicly accessible, I can take a closer look.<br>
<br>
My best guess, from your compiler output, is you're trying to<br>
construct a vector from a proxy, and the compiler can't figure out<br>
what constructor to call. You might want to insert an explicit wrap()<br>
so that the SEXP constructor is called.<br>
<br>
Also, which version of Rcpp?<br>
<br>
Cheers,<br>
Kevin<br>
<div><div class="h5"><br>
On Tue, Mar 11, 2014 at 1:23 PM, Jianyang Zhao <<a href="mailto:uzhao@ucdavis.edu">uzhao@ucdavis.edu</a>> wrote:<br>
> Hello All,<br>
><br>
> I'm writing a package which is able to build under windows. But when I try<br>
> to build it under linux, I got this error message.<br>
><br>
> (hilbert)-PACE$ R CMD INSTALL .<br>
> * installing to library '/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0'<br>
> * installing *source* package 'PACE' ...<br>
> ** libs<br>
> g++ -I/usr/local/R-3.0.2/lib64/R/include -DNDEBUG  -I/usr/local/include<br>
> -I"/usr/local/R-3.0.2/lib64/R/library/Rcpp/include"<br>
> -I"/usr/local/R-3.0.2/lib64/R/library/RcppEigen/include"   -fpic  -g -O2  -c<br>
> RcppPACE.cpp -o RcppPACE.o<br>
> RcppPACE.cpp: In constructor 'FPCA::FPCA(Rcpp::List, Rcpp::List,<br>
> Rcpp::List)':<br>
> RcppPACE.cpp:539: error: call of overloaded<br>
> 'Vector(Rcpp::traits::r_vector_proxy<19>::type)' is ambiguous<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:103:<br>
> note: candidates are: Rcpp::Vector<RTYPE>::Vector(const Rcpp::Dimension&)<br>
> [with int RTYPE = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:102:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(const int&) [with int<br>
> RTYPE = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:90:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(const char*) [with int<br>
> RTYPE = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:86:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(const std::string&) [with<br>
> int RTYPE = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:77:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(const<br>
> Rcpp::RObject::AttributeProxy&) [with int RTYPE = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:72:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(const<br>
> Rcpp::RObject::SlotProxy&) [with int RTYPE = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:68:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(SEXPREC*) [with int RTYPE<br>
> = 14]<br>
> /usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:63:<br>
> note:                 Rcpp::Vector<RTYPE>::Vector(const<br>
> Rcpp::Vector<RTYPE>&) [with int RTYPE = 14]<br>
> make: *** [RcppPACE.o] Error 1<br>
> ERROR: compilation failed for package 'PACE'<br>
> * removing '/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0/PACE'<br>
> * restoring previous<br>
> '/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0/PACE'<br>
><br>
> Is there any suggestion?<br>
><br>
> Thanks,<br>
><br>
> Jianyang<br>
><br>
</div></div>> _______________________________________________<br>
> Rcpp-devel mailing list<br>
> <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div><br></div>