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 | [email protected] | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to