<div dir="ltr">Hello Kevin,<div><br></div><div>I guess this is the problem. I just check the server I used and the gcc is 4.4.6-4. Thank you for your help.</div><div><br></div><div>Jianyang </div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 4:46 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>
I can't replicate your error on Mac OS X or Ubuntu 13.04 (gcc 4.7.3).<br>
The package installs successfully for me in each case with latest git<br>
revision of Rcpp, and latest CRAN version of RcppEigen (after removing<br>
the src-i386 and src-x64 folders and the prebuilt .dll)<br>
<br>
What version of gcc are you using in Linux (gcc -v)?<br>
<span class="HOEnZb"><font color="#888888"><br>
Kevin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Mar 11, 2014 at 1:48 PM, Jianyang Zhao <<a href="mailto:uzhao@ucdavis.edu">uzhao@ucdavis.edu</a>> wrote:<br>
> Hello Kevin,<br>
><br>
> I use the least version Rcpp and RcppEigen. The github link is at<br>
><br>
> <a href="https://github.com/uzhao/PACE" target="_blank">https://github.com/uzhao/PACE</a><br>
><br>
> Thanks,<br>
><br>
> JIanyang<br>
><br>
><br>
> On Tue, Mar 11, 2014 at 1:36 PM, Kevin Ushey <<a href="mailto:kevinushey@gmail.com">kevinushey@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>><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<br>
>> > try<br>
>> > to build it under linux, I got this error message.<br>
>> ><br>
>> > (hilbert)-PACE$ R CMD INSTALL .<br>
>> > * installing to library<br>
>> > '/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<br>
>> > -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>
>> ><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<br>
>> > Rcpp::Dimension&)<br>
>> > [with int RTYPE = 14]<br>
>> ><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&)<br>
>> > [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<br>
>> > 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>
>> > _______________________________________________<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>
><br>
><br>
</div></div></blockquote></div><br></div>