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&#39;m not used to building packages under windows, so maybe the solution is obvious, but I couldn&#39;t find it. I&#39;ve replaced all the `program files` in PATH by `PROGRA~1`, but some `program files` seems to be creeping in. <br>
<br>Here&#39;s the compilation message:<br><br>R CMD INSTALL --build the_package.tar.gz<br>* installing to library &#39;C:/Program Files/R/R-2.14.0/library&#39;<br>
* installing *source* package &#39;the_package&#39; ...<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 &quot;nodosfilewarning&quot; turns off this warning.<br>  Consult the user&#39;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&quot;C:/PROGRA~1/R/R-2.14.0/include&quot;    -I&quot;C:/Program Files/R/R-2.14.0/librar<br>y/Rcpp/include&quot; -I&quot;d:/RCompile/CRANpkg/extralibs/local/include&quot;     -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 &#39;the_package&#39;<br>* removing &#39;C:/Program Files/R/R-2.14.0/library/the_package&#39;<br>
* restoring previous &#39;C:/Program Files/R/R-2.14.0/library/the_package&#39;<br>
<br>Who&#39;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>