[Rcpp-devel] symbols "major" and "minor" under C++11

Dirk Eddelbuettel edd at debian.org
Tue Mar 10 03:16:35 CET 2015


Jack,

On 9 March 2015 at 22:02, Jack Wasey wrote:
| I'm on Rcpp 0.11.5
| 
| Here are the steps:
| 
| 1. in R:
| ```
| library(Rcpp)
| Rcpp.package.skeleton(attributes = TRUE, example_code = TRUE,
| name="majortest")
| ```
| 
| 2. create majortest/src/Makevars containing:
| 
| ```
| PKG_CXXFLAGS = $(CXX1XSTD)
| ```
| 
| 3. Edit rcpp_hello_world.cpp replacing:
| ```
| List rcpp_hello_world() {
| ```
| with
| ```
| List rcpp_hello_world(CharacterVector major) {
| ```
| 
| 4. both `devtools::load_all()` or `R CMD INSTALL majortest` then produce
| the previously described compilation errors, with my compiler set to gcc
| or clang.

Confirmed.  (I'd add a step 3.5 to manually run compileAttributes() as not
everybody uses devtools and/or RStudio which does that.)
 
| Hope that helps.

Yes, opening a new ticket. We had hope Kevin had squashed this. Sadly, we
were wrong.

Dirk

| Jack
| 
| On 03/09/2015 09:52 PM, Dirk Eddelbuettel wrote:
| > 
| > Jack,
| > 
| > Which Rcpp release did you use? We just released 0.11.5. Please try that if
| > you haven't yet.
| > 
| > This is "still not reproducible" as I would have to execute a number of steps
| > you have not spilled out in an easy-to-follow and unamibguous way. (Your
| > description was close though.)
| > 
| > Dirk
| > 
| 

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


More information about the Rcpp-devel mailing list