[Rcpp-devel] Rcpp 0.9.10 and cygwin 1.7.12-1

Dario Buttari dario.buttari at gmail.com
Sun Apr 22 17:57:09 CEST 2012


Rcpp 0.9.10 does not install properly in R 2.14.2-1 under cygwin
1.7.12-1 due to the fact that execinfo.h is not supported under
cygwin.
Marco Atzeri provided a patch to the code:
http://cygwin.com/ml/cygwin/2012-04/msg00346.html.
I verified that the patch works fine. The patch is below.
Would it be possible to incorporate the patch to the next version of Rcpp?
R is now part of the standard collection of packages supported by
Cygwin (http://cygwin.com/packages/) and it would be nice to be able
to install R packages under Cygwin without the need for manual
patching.
Thanks, Dario

----------------------------------------------------------------------
--- src/debugging.cpp_bk        2012-04-15 16:04:11.104213600 +0200
+++ src/debugging.cpp   2012-04-15 16:04:59.454979200 +0200
@@ -22,7 +22,7 @@
 #include <Rcpp.h>

#if defined(__GNUC__)
-#if defined(WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) ||
defined(__OpenBSD__)
+#if defined(WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) ||
defined(__OpenBSD__) || defined(__CYGWIN__)
// Simpler version for Windows and *BSD
SEXP stack_trace( const char* file, int line ){
Rcpp::List trace = Rcpp::List::create(
------------------------------------------------------------------------


More information about the Rcpp-devel mailing list