hi dirk,

i've been compiling RInside on windows with the new RTools based on GCC 4.9. with stock settings, this all compiles successfully.

however, if i add "-std=c++11" to CXX_FLAGS, then the compilation fails. it chokes on line 27 of RInside.cpp [1]. what makes this more interesting is that this line is surrounded with an #ifndef WIN32, so this line shouldn't even be in there ( https://github.com/eddelbuettel/rinside/blob/master/src/RInside.cpp#L25 )

if i comment lines 26, 27 out, then the compilation works.

this isn't actually a new problem for me, i've been commenting out lines 26, 27 for a couple of years now (my last toolchain was based on GCC 4.8.2), but this is the first time i've had a simple reproducible example.

have you encountered this before?

with thanks

jonathon

notes about [1]: sorry it's hard to read, i couldn't copy/paste from the dos terminal, so i screenshotted it, and attached it. but the mailing list rejected it for being too large, so i OCRed it:

[1]
C:\Users\Jonathon\Documents\silky-bundle-win\Frameworks\R\bin\x64>R CMD INSTALL RInside_0.2.13.tar.gz --no-multiarch * installing to library C:/Usersilonathon/Documents/silky-bundle-win/Frameworks/R/library' * installing *source.- package 'RInside' ** package 'Rlnside' successfully unpacked and MD5 sums checked
* *
libs
C:/Users/Jonathon/Documentsisilky-bundle-win/Frameworks/R/bin/x64/Rscript.exe tools/RlnsideAutoloads.r > RlnsideAutoload • h C:jUsers/Jonathon/Documents/silky-bundle-win/Frameworks/R/bin/x64/Rscript.exe tools/RlnsideEnvVars.r > RlnsideEnvVars. h g++ -m64 -I"C:/Users/Jonathon/Documents/silky-bundle-win/Frameworks/R/include" -DNDEBUG -I. -I../inst/include/ -I"C:/U sers/Jonathon/Documents/silky-bundle-win/Frameworks/R/library/Rcpp/include" -Ifid:/RCompile/r-compiling/local/local323/in dude" -std=c++11 -02 -Wall -mtune=core2 -c MemBuf.cpp -o MemBuf.o g++ -m64 -I"C:/Users/Jonathon/Documents/silky-bundle-win/Frameworks/R/include" -DNDEBUG -I. -I../inst/include/ -I"C:/U sers/Jonathon/Documents/silky-bundle-win/Frameworks/R/library/Rcpp/include" -Ifid:/RCompile/r-compiling/local/local323/in dude" -std=c++11 -02 -Wall -mtune=core2 -c Rlnside.cpp -o Rlnside.o RInside.cpp:27:26: fatal error: Rinterface.h: No such file or directory #include <Rinterface.h>
compilation terminated. make: *** [Rlnside.o] Error 1


_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to