[Rcpp-devel] link issue when Rcpp package is installed in a path with space
guojq28 at gmail.com
Thu Jul 12 02:18:32 CEST 2012
>From some reason, my Rcpp package on windows is installed in C:/Program
Files/R/R-2.15.1/library/, which has a space in the path. So in the end,
when compiling cpp code using inline package, I would have the following
error, which prevent me using Rcpp at all.
C:/PROGRA~1/R/R-215~1.1/bin/i386/R CMD SHLIB file75c3d5d6216.cpp 2>
g++ -I"C:/PROGRA~1/R/R-215~1.1/include" -DNDEBUG -I"C:/Program
Files/R/R-2.15.1/library/Rcpp/include" -O2 -Wall -mtune=core2 -c
file75c3d5d6216.cpp -o file75c3d5d6216.o
g++ -shared -s -static-libgcc -o file75c3d5d6216.dll tmp.def
g++.exe: error: C:/Program: No such file or directory
g++.exe: error: Files/R/R-2.15.1/library/Rcpp/lib/i386/libRcpp.a: No such
file or directory
Could we add quotes to those the Rcpp libraries? It is easy to just fix
for me on my computer, i.e., change file RcppLdpath.R
and reinstall from source. But it would be nice that we do not have this
issue in the next release.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel