[Rcpp-devel] Question about Rcpp on Windows

Dirk Eddelbuettel edd at debian.org
Thu Jul 7 15:24:42 CEST 2011


Yi,

Please use the rcpp-devel list for Rcpp questions, and you need to subscribe
to post. I will CC the list now, please follow up on-list.

On 7 July 2011 at 21:02, Yi Zhao wrote:
| Dear Dirk,
| 
| Your Rcpp package is very very brilliant. I have done a lot of works on linux
| system by the help of Rcpp package.
| 
| However, recently I am trying to use the Rcpp package on the Windows system by
| minGW and Rtools. After I create the package, ">Rcpp.package.skeleton(
| "mypackage" )", the package cannot be Installed.
| 
| The error is:
| * installing *source* package 'test' ...
| ** libs
| cygwin warning:
|   MS-DOS style path detected: C:/PROGRA~1/R/R-213~1.0/etc/i386/Makeconf
|   Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-213~1.0/etc/i386/
| Makeconf
|   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-213~1.0/include"    -I"C:/Program Files/R/R-2.13.0/
| library/Rcpp/include"      -O2 -Wall  -c rcpp_hello_world.cpp -o
| rcpp_hello_world.o
| g++ -shared -s -static-libgcc -o test.dll tmp.def rcpp_hello_world.o C:/Program
| Files/R/R-2.13.0/library/Rcpp/lib/i386/libRcpp.a -LC:/PROGRA~1/R/R-213~1.0/bin/
| i386 -lR
| g++.exe: C:/Program: No such file or directory
| g++.exe: Files/R/R-2.13.0/library/Rcpp/lib/i386/libRcpp.a: No such file or
| directory
| ERROR: compilation failed for package 'test'
| * removing 'C:/wkdir/test.Rcheck/test'
| 
| 
| It can be installed on the Linux, but not windows. Do I miss some setting that
| should be used on windows? Maybe it cannot linked to Rcpp library?

Your error seems to be that you installed in a PATH with spaces -- the
R-on-Windows FAQ tells you not to.

Also note that all CRAN packages, incl Rcpp and those using Rcpp, build on
Windows. The error is your setup and be easy to correct.

Hope this helps, Dirk

| 
| Please show me some suggestion. Thank you very much!
| 
| I know you are very very busy. Please reply this email at your convenience.
| 
| Best regards,
| 
| Yi Zhao
| 
| Nankai University, China

-- 
Gauss once played himself in a zero-sum game and won $50.
                      -- #11 at http://www.gaussfacts.com


More information about the Rcpp-devel mailing list