[Rcpp-devel] C++11 Solaris cmath/math.H

Dirk Eddelbuettel edd at debian.org
Wed Sep 6 18:49:36 CEST 2017


Hi Jan,

On 6 September 2017 at 15:03, Jan Wijffels wrote:
| I'm trying to fix the installation issue I have with the package udpipe:
| https://github.com/bnosac/udpipe but I'm getting issues on Solaris giving
| messages like this:

Solaris no longer really matters.

| If I do not add ​SystemRequirements: C++11 and remove the Makevars file,
| this works fine on Solaris.

You could add C++11 conditionally, ie only on Linux/macOS/Windows.  You could
use (even a shell script named) configure for that.

| I need however C++11 as I need it in the udpipe
| R package for building udpipe.cpp but can't add
| to that udpipe.cpp file the following types of statements due to conflicts
| on the use of the Free macro.
| #include <Rcpp.h>
| using namespace Rcpp;
| // [[Rcpp::plugins(cpp11)]]

Can you explain a bit more?  What Free macro?  Do you know about forcing R to
add Rf_ to its macros?

Also [[Rcpp::plugins(cpp11)]] should not be needed in a package.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list