title: Building R package with C++11 & Rcpp on Windows
body: <p><strong>SYSTEM SPEC:</strong></p>
  
  <ul>
  <li><strong>OS</strong> - Windows 7 Professional &amp; Mac OS X 10.6.8</li>
  <li><strong>MinGW</strong> - 4.7.3 and above</li>
  <li><strong>R</strong> - 3.0.1</li>
  <li><strong>Rcpp</strong> - 0.10.4</li>
  </ul>
  
  <p>I cannot compile a working package with C++11 code in it on Windows (neither a 32 or 64 bit version). MinGW compiles and installs the package, but using functions that call C++11 code crashes R. I am using C++11's <em>random</em> library - specifically, a humble binomial distribution with Mersenne Twister generator.</p>
  
  <p>I am confident that my code is correct as its UNIX version (compiled on Mac OS X using gcc 4.7.3) is working as intended without any problems at all.</p>
  
  <p>The problem is not in Rcpp or RcppArmadillo - in fact, I was able to make my package operational by using Armadillo's random number generator. However, I am extremely keen on being able to use C++11 in the future, especially  library.</p>
  
  <p>Any thoughts on how to fix this?</p>