Reputation: 143
When trying to compile Rcpp 12.6 with g++ 4.8.4, i'm getting the following error message:
error: expected initializer before ‘stop’
inline void noret stop(const std::string& message)
Can't seem to find anything on the attribute NORET
.
Upvotes: 1
Views: 425
Reputation: 368599
The NORET
macro is defined by R -- but only in recent versions of R. As we (and CRAN) do all our tests and builds with recent versions, this slipped.
The issue has already been reported as issue #512 (as well as again in #516). It has already been addressed in the master branch as well as in an interim release 0.12.6.1 which you can obtain from the Rcpp drat repository.
Otherwise, just add an (empty) #define NORET
or, better yet, update your R version.
Upvotes: 5