[Rcpp-devel] Compile problem on Win x64 resolved with -std=c++0x
Smith, Dale
Dale.Smith at Fiserv.com
Tue Jul 17 14:41:58 CEST 2012
Hi all,
I had the "long long unsigned int" problem today on Win x64. I passed
--no-multiarch to R CMD build after making a package using
Rcpp.package.skeleton. The error message in part was
***
C:/R/R-2.15.1/library/Rcpp/include/Rcpp/internal/wrap.h:433:11: error:
invalid conversion from 'long long unsigned int' to 'SEXP'
[-fpermissive]
make: *** [stdVector.o] Error 1
***
I resolved the problem using
PKG_CXXFLAGS = "-std=c++0x"
in my Makevars files.
gcc 4.6.3 (from Rtools215) apparently doesn't support "c++11". Based on
the list traffic I've seen, I suspect c++0x is not supported by CRAN,
but I haven't looked into it, so YMMV.
Thanks,
Dale Smith, Ph.D.
Senior Financial Quantitative Analyst
Risk & Compliance
Fiserv.
107 Technology Park
Norcross, GA 30092
Office: 678-375-5315
Mail: dale.smith at fiserv.com
www.fiserv.com
More information about the Rcpp-devel
mailing list