<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=""><pre tabindex="0" class="GD15MCFCEUB ace_text-layer GD15MCFCHUB GD15MCFCAW ace_line" style="font-variant-ligatures: normal; line-height: 1.45; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; box-sizing: border-box; width: 733px; padding: 6px; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-family: Monaco, monospace !important; font-size: 10pt !important; font-variant-numeric: inherit !important; font-variant-east-asian: inherit !important; font-stretch: inherit !important; white-space: pre-wrap !important;"><span class="GD15MCFCEUB" style="outline: none; border: none; word-break: break-all; margin: 0px;">Dear all, avec a Mac update today I obtained the following error while compiling a package of mine using Rcpp : </span></pre><pre tabindex="0" class="GD15MCFCEUB ace_text-layer GD15MCFCHUB GD15MCFCAW ace_line" style="font-variant-ligatures: normal; line-height: 1.45; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; box-sizing: border-box; width: 733px; padding: 6px; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-family: Monaco, monospace !important; font-size: 10pt !important; font-variant-numeric: inherit !important; font-variant-east-asian: inherit !important; font-stretch: inherit !important; white-space: pre-wrap !important;"><span class="GD15MCFCEUB" style="outline: none; border: none; word-break: break-all; margin: 0px;">/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
                    Exporter( SEXP x ) : t(x){}</span></pre><div class=""><pre tabindex="0" class="GD15MCFCEUB ace_text-layer GD15MCFCHUB GD15MCFCAW ace_line" style="font-variant-ligatures: normal; line-height: 1.45; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; box-sizing: border-box; width: 733px; padding: 6px; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-family: Monaco, monospace !important; font-size: 10pt !important; font-variant-numeric: inherit !important; font-variant-east-asian: inherit !important; font-stretch: inherit !important; white-space: pre-wrap !important;"><span class="GD15MCFCEUB" style="outline: none; border: none; word-break: break-all; margin: 0px;">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 </span><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. </pre></div><div class="">I have R 3.6 and clang7 installed. </div><div class=""><br class=""></div><div 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("RcppArmadillo", type = "source »)) it gives something about cross compiling:</div><div class=""><br class=""></div><div class=""><div class="">checking whether the C++ compiler works... yes</div><div class="">checking for C++ compiler default output file name... a.out</div><div class="">checking for suffix of executables... </div><div class="">checking whether we are cross compiling... configure: error: in `/private/var/folders/zt/7cz1y9md79l_h08bbqymt4w9z8xlw7/T/Rtmpgi7WQZ/R.INSTALL4f4110aa3f/RcppArmadillo':</div><div class="">configure: error: cannot run C++ compiled programs.</div><div class="">If you meant to cross compile, use `--host'.</div><div class="">See `config.log' for more details</div><div class="">ERROR: configuration failed for package ‘RcppArmadillo’</div><div class=""><br class=""></div></div><div class=""><br class=""></div><div class="">Thanks in advance for your help</div><div class="">Regards</div><div class="">Robin</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>