<div dir="ltr">If I install the latest, header-only, git version of Rcpp (f117a70), which is a great achievement by the way, installation of RcppEigen encounters a few minor problems. One seems to be related to conflicting definitions of trunc in Rmath.h and in fstream<div>
<br></div><div><div>In file included from fastLm.cpp:23:</div><div>In file included from ./fastLm.h:25:</div><div>In file included from ../inst/include/RcppEigen.h:25:</div><div>In file included from ../inst/include/RcppEigenForward.h:39:</div>
<div>In file included from ../inst/include/unsupported/Eigen/SparseExtra:22:</div><div>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/fstream:641:60: error: no member named 'Rf_ftrunc' in 'std::ios_base'</div>
<div>In file included from ios_base::openmode __mode = ios_base::out|ios_base::trunc)</div><div> ~~~~~~~~~~^</div><div>RcppEigen.cpp:22:</div>
<div>In file included from ../inst/include/RcppEigen.h:25:</div><div>/home/bates/build/R-devel/include/Rmath.h:In file included from ../inst/include/RcppEigenForward.h348::3915::</div><div>In file included from note: ../inst/include/unsupported/Eigen/SparseExtra:expanded 22:</div>
<div>from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/fstreammacro :641'trunc'</div><div>:60: error: #define trunc ftrunc</div><div>no ^</div><div>member /home/bates/build/R-devel/include/Rmath.hnamed :247'Rf_ftrunc' :17in : 'std::ios_base'</div>
<div>note: expanded from macro 'ftrunc'</div><div>#define ftrunc Rf_ftrunc</div><div> ^</div><div> ios_base::openmode __mode = ios_base::out|ios_base::trunc)</div>
</div><div><br></div><div>The other looks like I was playing a bit fast and loose with converting an attribute to a list</div><div><br></div><div><div>make: *** Waiting for unfinished jobs....</div><div>fastLm.cpp:217:20: error: call to constructor of 'List' (aka 'Vector<19>') is ambiguous</div>
<div> List dimnames(NumericMatrix(Xs).attr("dimnames"));</div><div> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div></div><div><br></div><div>There is one more problem, but I think that needs a namespace qualifier.</div>
<div><br></div><div><div>fastLm.cpp:240:6: error: use of undeclared identifier 'forward_exception_to_r'; did you mean 'Rcpp::forward_exception_to_r'?</div><div> forward_exception_to_r( ex );</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~</div><div> Rcpp::forward_exception_to_r</div><div>/home/bates/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/exceptions.h:172:17: note: 'Rcpp::forward_exception_to_r' declared here</div>
<div> inline void forward_exception_to_r( const std::exception& ex){</div><div> ^</div><div><br></div></div><div>Do these all look like issues that I should address in RcppEigen?</div></div>