<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>This may already be common knowledge (apologies if it is), but a quick scan of the (recent) email exchanges did not suggest so, and I have come across a number of partial questions and answers on this same topic.<br>
</p>
<p><br>
</p>
<p>I have been struggling with an annoying lambda/template bug in gcc 4.6.3 :<br>
</p>
<p><a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53741" id="lnk428503">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53741</a><br>
</p>
<p>so decided to try to update the gcc that is packaged with Rtools to 4.8.1.<br>
</p>
<p><br>
</p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">This may assist with Windows users "</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">internal
 Rcpp projects" -</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> </span>I appreciate package authoring/distribution and CRAN upload concern are more "delicate".<br>
</p>
<p><br>
</p>
<p>I did not initially post to Rcpp-devel, as Rtools is a R-devel concern. But in case anyone may find this useful for their Rcpp efforts, here is my post with the method I used:<br>
</p>
<p><br>
</p>
<p><a href="http://stackoverflow.com/questions/25455829/using-a-different-gcc-version-from-that-included-with-rtools-with-rcpp-on-window/25456836#25456836" id="NoLP">http://stackoverflow.com/questions/25455829/using-a-different-gcc-version-from-that-included-with-rtools-with-rcpp-on-window/25456836#25456836</a></p>
<div id="LPBorder_GT_14087561339830.8678665559273213" style="margin-top: 20px; margin-bottom: 20px;">
<table id="LPContainer_14087561339800.7333543549757451" style="border-top-color: rgb(204, 204, 204); border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); width: 80%; position: relative; background-color: rgb(255, 255, 255);">
<tbody>
<tr valign="top">
<td style="width: 140px; position: relative; display: inline;">
<div id="LPImageContainer_14087561339820.004078204277902842" style="margin-top: 12px; height: 140px; width: 140px; position: relative; display: table; background-color: rgb(255, 255, 255);">
<a id="LPImageAnchor_14087561339820.8147574316244572" href="http://stackoverflow.com/questions/25455829/using-a-different-gcc-version-from-that-included-with-rtools-with-rcpp-on-window/25456836#25456836" target="_blank" style="display: table-cell;"><img aria-label="Preview image with link selected. Double-tap to open the link." width="140" height="140" style="display: block; margin-left: auto; margin-right: auto; max-width: 140px; max-height: 140px; height: 140px; width: 140px; border-width: 0px;" src="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon@2.png?v=fde65a5a78c6"></a></div>
</td>
<td>
<div id="LPTitle_14087561339820.6731479263398796" style="top: 0px; margin-top: 8px; font-size: 21px; font-family: 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI WPC Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(51, 51, 51); margin-left: 14px; margin-right: 14px;">
c++ - Using a different gcc version from that included with Rtools with Rcpp on Windows - Stack Overflow</div>
<div id="LPDescription_14087561339820.3153927142266184" style="margin-top: 8px; font-size: 13px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(102, 102, 102); margin-left: 14px; margin-right: 14px;">
Before I embark on updating gcc, has anyone actually attempted this, and can they confirm building R from source is required to update the gcc version one uses to compile c++ code with Rcpp (i.e. not
</div>
<div id="LPUrlContainer_14087561339830.1544906673952937" style="margin: 8px 14px 10px; height: 18px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">
<a id="LPUrlAnchor_14087561339830.19789699371904135" href="http://stackoverflow.com/questions/25455829/using-a-different-gcc-version-from-that-included-with-rtools-with-rcpp-on-window/25456836#25456836" target="_blank" style="font-size: 11px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; text-decoration: none;">Read
 more...</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<p></p>
<p><br>
</p>
</body>
</html>