[Rcpp-devel] compiling Rcpp with 3.0.1 on Solaris 10
Dirk Eddelbuettel
edd at debian.org
Mon Jun 24 21:06:43 CEST 2013
Hans,
Ie in these two lines of src/api.cpp you may just add a suitable defined(__sun)
and the end:
#if defined(__GNUC__)
#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(
Rcpp::Named( "file" ) = file,
Rcpp::Named( "line" ) = line,
Rcpp::Named( "stack" ) = "C++ stack not available on this system" ) ;
trace.attr("class") = "Rcpp_stack_trace" ;
return trace ;
}
#else // ! (defined(WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__)
so that you get the fallback rather than the default which assumes gcc.
Could you please test that, and report back?
Dirk
PS: That define comes with the excellent wiki at
http://sourceforge.net/p/predef/wiki/Home/
which colletcts these things.
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list