Hi list,<br><br>I have a problem with building my package under windows (the same issue as <a href="https://stat.ethz.ch/pipermail/r-help/2011-July/284631.html" target="_blank">https://stat.ethz.ch/pipermail/r-help/2011-July/284631.html)</a><br>
However, I could not fix the problem as I could not find where that unquoted spaced path was coming. I'm not used to building packages under windows, so maybe the solution is obvious, but I couldn't find it. I've replaced all the `program files` in PATH by `PROGRA~1`, but some `program files` seems to be creeping in. <br>
<br>Here's the compilation message:<br><br>R CMD INSTALL --build the_package.tar.gz<br>* installing to library 'C:/Program Files/R/R-2.14.0/library'<br>
* installing *source* package 'the_package' ...<br>** libs<br>cygwin warning:<br> MS-DOS style path detected: C:/PROGRA~1/R/R-2.14.0/etc/i386/Makeconf<br> Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-2.14.0/etc/i386/Makeco<br>
nf<br> CYGWIN environment variable option "nodosfilewarning" turns off this warning.<br> Consult the user's guide for more details about POSIX paths:<br> <a href="http://cygwin.com/cygwin-ug-net/using.html#using-pathnames" target="_blank">http://cygwin.com/cygwin-ug-net/using.html#using-pathnames</a><br>
g++ -I"C:/PROGRA~1/R/R-2.14.0/include" -I"C:/Program Files/R/R-2.14.0/librar<br>y/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs/local/include" -O2 -Wall -<br>mtune=core2 -c the_package.cpp -o the_package.o<br>
g++ -shared -s -static-libgcc -o the_package.dll tmp.def the_package.o -Ld:/RCompile/CRANpkg/e<br>xtralibs/local/lib C:/Program Files/R/R-2.14.0/library/Rcpp/lib/i386/libRcpp.a -<br>LC:/PROGRA~1/R/R-2.14.0/bin/i386 -lR<br>
g++.exe: C:/Program: No such file or directory<br>
g++.exe: Files/R/R-2.14.0/library/Rcpp/lib/i386/libRcpp.a: No such file or direc<br>tory<br>ERROR: compilation failed for package 'the_package'<br>* removing 'C:/Program Files/R/R-2.14.0/library/the_package'<br>
* restoring previous 'C:/Program Files/R/R-2.14.0/library/the_package'<br>
<br>Who's producing that evil C:/Program Files/R/R-2.14.0/library/Rcpp/lib/i386/libRcpp.a ? I just want to suround it with quotes !<br><br>Thanks,<br>Etienne<br><br>