<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Le 2 mai 2019 à 23:18, Simon Urbanek <<a href="mailto:simon.urbanek@R-project.org" class="">simon.urbanek@R-project.org</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Robin,<br class=""><br class="">this is unlikely a Mac issue, merely newer compilers give you better error handling pointing to issues in the code that may not have been detected before. If you post the code we can have a look.<br class=""><br class="">Also check your tools - the RcppArmadillo error points out that your compiler setup is broken since it cannot create runnable executable. Check config.log for details.<br class=""><br class="">Cheers,<br class="">Simon<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On May 2, 2019, at 1:04 PM, Robin GIRARD <<a href="mailto:robin.girard@mines-paristech.fr" class="">robin.girard@mines-paristech.fr</a>> wrote:<br class=""><br class="">Dear all, avec a Mac update today I obtained the following error while compiling a package of mine using Rcpp : <br class="">/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp/internal/Exporter.h:31:30: error: reference member 't' binds to a temporary object whose lifetime would be shorter than the lifetime of the constructed object<br class="">                    Exporter( SEXP x ) : t(x){}<br class=""><br class="">I’m pretty sure this has something to do with Mac, I updated the Command line tool, I manage to compile simple examples with sourceRcpp (trying to follow instructions here <a href="http://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-macos/" class="">http://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-macos/</a>) I’m still trying to reproduce my error on a simple example. <br class="">I have R 3.6 and clang7 installed. <br class=""><br class="">Another strange point (might be connected) is that when I try to install RcppArmadillo from source (as suggested in link above with install.packages("", type = "source »)) it gives something about cross compiling:<br class=""><br class="">checking whether the C++ compiler works... yes<br class="">checking for C++ compiler default output file name... a.out<br class="">checking for suffix of executables... <br class="">checking whether we are cross compiling... configure: error: in `/private/var/folders/zt/7cz1y9md79l_h08bbqymt4w9z8xlw7/T/Rtmpgi7WQZ/R.INSTALL4f4110aa3f/RcppArmadillo':<br class="">configure: error: cannot run C++ compiled programs.<br class="">If you meant to cross compile, use `--host'.<br class="">See `config.log' for more details<br class="">ERROR: configuration failed for package ‘RcppArmadillo’<br class=""><br class=""><br class="">Thanks in advance for your help<br class="">Regards<br class="">Robin<br class=""><br class=""><br class="">_______________________________________________<br class="">Rcpp-devel mailing list<br class=""><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" class="">Rcpp-devel@lists.r-forge.r-project.org</a><br class="">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel<br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></body></html>