Skip to content

Development version broken for STRICT_R_HEADERS #612

@jeroen

Description

@jeroen

For some packages we need to #define STRICT_R_HEADERS because macros like Calloc, Free and ERROR conflict with identically named macros in other libraries.

This is working fine in Rcpp from CRAN, however in the development version of Rcpp I now get errors on Windows. It looks like a recent change in sugar/functions/sample.h has started using S-style Calloc and Free instead of stdlib calloc and free.

Is this intentional? It will break many packages that use <Rcpp.h> in conjunction with STRICT_R_HEADERS.

devtools::install_github("RcppCore/Rcpp")
devtools::install_github("ropensci/tesseract")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions