[Rcpp-devel] Path space problem on Windows

Etienne B. Racine etiennebr at gmail.com
Thu Dec 8 15:30:15 CET 2011


Hi list,

I have a problem with building my package under windows (the same issue as
https://stat.ethz.ch/pipermail/r-help/2011-July/284631.html)<https://stat.ethz.ch/pipermail/r-help/2011-July/284631.html>
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.

Here's the compilation message:

R CMD INSTALL --build the_package.tar.gz
* installing to library 'C:/Program Files/R/R-2.14.0/library'
* installing *source* package 'the_package' ...
** libs
cygwin warning:
  MS-DOS style path detected: C:/PROGRA~1/R/R-2.14.0/etc/i386/Makeconf
  Preferred POSIX equivalent is:
/cygdrive/c/PROGRA~1/R/R-2.14.0/etc/i386/Makeco
nf
  CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
g++  -I"C:/PROGRA~1/R/R-2.14.0/include"    -I"C:/Program
Files/R/R-2.14.0/librar
y/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs/local/include"     -O2
-Wall  -
mtune=core2 -c the_package.cpp -o the_package.o
g++ -shared -s -static-libgcc -o the_package.dll tmp.def the_package.o
-Ld:/RCompile/CRANpkg/e
xtralibs/local/lib C:/Program
Files/R/R-2.14.0/library/Rcpp/lib/i386/libRcpp.a -
LC:/PROGRA~1/R/R-2.14.0/bin/i386 -lR
g++.exe: C:/Program: No such file or directory
g++.exe: Files/R/R-2.14.0/library/Rcpp/lib/i386/libRcpp.a: No such file or
direc
tory
ERROR: compilation failed for package 'the_package'
* removing 'C:/Program Files/R/R-2.14.0/library/the_package'
* restoring previous 'C:/Program Files/R/R-2.14.0/library/the_package'

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 !

Thanks,
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20111208/03e7e651/attachment.htm>


More information about the Rcpp-devel mailing list