<p style="margin:0;padding:0;" align="left">Hello everyone, <br /><br />I hope I am doing the right thing in posting my question here. If no, sorry... I've been through the Rcpp FAQ, the Rcpp-Introduction vignette, the Appendix D The Windows toolset, and quite a lot of googling but I havn't found a solution to my problem. <br />My final objective is to speed up a script that builds an estimated satellite image from three other images. I have factorized everything I could, tried a bit of parallel processing, but the script is still too slow so I would like to use some C++ inside it to reduce the computing time (using inline() for having C++ made functions instead of R-made functions). At the moment, I am just trying to run examples of inline(), but it doesn't work.<br />Using the following example, R gives me error messages (one at he beginning of the R-GUI "ouput text", one at the end). Source of the example: http://stackoverflow.com/questions/7852520/how-to-make-inline-c-function-calls-in-r<br /><br />From what I understand of the error messages, g++ (the compiler, I think) cannot be found. On this thread, someone had a problem that looks like mine, it was a path problem : http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2012-March/003597.html<br />When I type "path" on the Windows Command Prompt, I get this :<br />PATH=C:\R\Rtools\bin;C:\R\Rtools\MinGW\bin;C:\R\R-2.15.1\bin<br />No spaces in the directory names, I think it should be fine. However, it doesn't work. Could the problem come from Cygwin? If yes, do you have a clue on how to solve it? If no, could you tell me what I did wrong?<br /><br />I put sessionInfo() data at the end of my message. My computer runs on windows 7 enterprise, 32 bits.<br /><br />Thanks, <br />Valentin Mansion<br /><br />### example used : ###<br />library(Rcpp)<br />library(inline)<br />xorig <- c(1, -2, 3, -4, 5, -6, 7)<br />code <- '<br />    Rcpp::NumericVector x(xs);<br />    Rcpp::NumericVector xa = sapply( x, ::fabs );<br />    return(xa);<br />    '<br />xabs <- cxxfunction(signature(xs="numeric"),<br />                    plugin="Rcpp",<br />                    body=code)<br />xabs(xorig)<br />### end of example ###<br /><br />### error message at the begining of output text ###<br />cygwin warning:<br />  MS-DOS style path detected: C:/R/R-215~1.1/etc/i386/Makeconf<br />  Preferred POSIX equivalent is: /cygdrive/c/R/R-215~1.1/etc/i386/Makeconf<br />  CYGWIN environment variable option "nodosfilewarning" turns off this warning.<br />  Consult the user's guide for more details about POSIX paths:<br />    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames<br />g++: not found<br />make: *** [file146c5ece3f56.o] Error 127<br />ERROR(s) during compilation: source code errors or compiler configuration errors!<br />### end of error message at the beginning of output text ###<br /><br />### error message at the end of output text###<br />Error in compileCode(f, code, language = language, verbose = verbose) : <br />  Compilation ERROR, function(s)/method(s) not created! <br />  ###cygwin warning deleted to make the text shorter###<br />g++: not found<br />make: *** [file146c5ece3f56.o] Error 127<br />In addition: Warning message:<br />running command 'C:/R/R-2.15.1/bin/i386/R CMD SHLIB file146c5ece3f56.cpp 2> file146c5ece3f56.cpp.err.txt' had status 1 <br />### end of error message ###<br /><br /><br />### sessionInfo() ###<br />R version 2.15.1 (2012-06-22)<br />Platform: i386-pc-mingw32/i386 (32-bit)<br /><br />locale:<br />[1] LC_COLLATE=C                       LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                      <br />[5] LC_TIME=English_Australia.1252    <br /><br />attached base packages:<br />[1] tools     stats     graphics  grDevices utils     datasets  methods   base     <br /><br />other attached packages:<br />[1] RcppArmadillo_0.3.2.0 inline_0.3.8          Rcpp_0.9.13 <br />### end of sessionInfo ###<br /></p>