<div dir="ltr">Dear Rcpp developers,<div><br></div><div> I am working on a <a href="https://github.com/mfasiolo/mvnfast">package</a> which uses Rcpp/RcppArmadillo, OpenMP and C++11.</div><div><br></div><div>Everything works fine under Linux: the package passes R CMD check --as-cran,</div>
<div>while tests and vignettes work fine.</div><div><br></div><div>I uploaded the package on win-builder, but I keep getting the error at the bottom.</div><div><br></div><div><div>I have included the line CXX_STD = CXX11 in makefile.win as written in "Writing<br>
</div><div>R extensions". I have read comments on <a href="http://stackoverflow.com/questions/18971177/building-r-package-with-c11-rcpp-on-windows">SO</a> regarding Rtools not supporting many C++11</div><div>features. Is that the reason for the error or am I missing something?</div>
</div><div><br></div><div>Thanks,</div><div><br></div><div>Matteo</div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">*** arch - i386
g++  -std=c++0x -I"D:/RCompile/recent/R-3.1.0/include" -DNDEBUG    -I"d:/RCompile/CRANpkg/lib/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include"     -O2 -Wall  -mtune=core2 -c dmvnCpp.cpp -o dmvnCpp.o
In file included from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloForward.h:28:0,
                 from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadillo.h:30,
                 from mvnfast.h:4,
                 from dmvnCpp.cpp:1:
d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloConfig.h:90:35: fatal error: RcppArmadilloLapack.h: No such file or directory
compilation terminated.
make: *** [dmvnCpp.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "D:/RCompile/recent/R-3.1.0/etc/i386/Makeconf" -f "D:/RCompile/recent/R-3.1.0/etc/i386/Makevars.site" -f "D:/RCompile/recent/R-3.1.0/share/make/<a href="http://winshlib.mk">winshlib.mk</a>" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="mvnfast.dll" OBJECTS="dmvnCpp.o mahaCpp.o msCpp.o rmvnCpp.o"' had status 2
g++  -std=c++0x -I"D:/RCompile/recent/R-3.1.0/include" -DNDEBUG    -I"d:/RCompile/CRANpkg/lib/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include"     -O2 -Wall  -mtune=core2 -c dmvnCpp.cpp -o dmvnCpp.o
In file included from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloForward.h:28:0,
                 from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadillo.h:30,
                 from mvnfast.h:4,
                 from dmvnCpp.cpp:1:
d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloConfig.h:90:35: fatal error: RcppArmadilloLapack.h: No such file or directory
compilation terminated.
make: *** [dmvnCpp.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "D:/RCompile/recent/R-3.1.0/etc/i386/Makeconf" -f "D:/RCompile/recent/R-3.1.0/etc/i386/Makevars.site" -f "D:/RCompile/recent/R-3.1.0/share/make/<a href="http://winshlib.mk">winshlib.mk</a>" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="mvnfast.dll" OBJECTS="dmvnCpp.o mahaCpp.o msCpp.o rmvnCpp.o" symbols.rds' had status 2
ERROR: compilation failed for package 'mvnfast'
* removing 'd:/RCompile/CRANguest/R-release/lib/mvnfast'</pre></div><div><br></div><div><br></div><div><br></div></div>