Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-21 Thread Kevin Thornton
Dirk, OK, I’ll try again. I’ll respond out of order: c) There are no run instructions. This issue (as stated in all of my posts on this issue) is that GCC will not load the .so from the MWE because standard_delete_finalizer is missing. Compiling with clang++ does not have this issue, which

Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Dirk Eddelbuettel
Kevin, Still not a minimally reproducible example as it lacks a) instructions to tell sourceCpp() to turn on C++11 (ie // [[Rcpp::plugins("cpp11")]] b) build instructions c) run instructions We are a fairly common standard for this over here, or on SO. Good examples are provided by the R

Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Kevin Thornton
I claim that I’ve provided it, so I’m assuming that the delivery (gist) is the problem. So, here’s a copy/paste for you. Without the custom deleter, this fails to link using GCC 4.7/4.8/4.9 with Rcpp 0.11.4 and newer. The problem is the combination of the typedef and the function foo being a

Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Jaime Ashander
Hmm. Thr gist looks like it might provide a MWE? Anyway, if it looks like a possible bug you could file it at the bugreports link from description: https://github.com/RcppCore/Rcpp/issues - Jaime On Wed, May 20, 2015 at 5:51 PM, Hao Ye wrote: > Kevin, > I think Dirk is looking for a MW

Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Hao Ye
Kevin, I think Dirk is looking for a MWE (minimal working example). Best, -- Hao Ye [email protected] > On May 20, 2015, at 5:35 PM, Kevin Thornton wrote: > > Dirk, > > What are you asking for? I provided a working source file + the Rscripts I > used to identify the problem + ample comments ab

Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Kevin Thornton
Dirk, What are you asking for? I provided a working source file + the Rscripts I used to identify the problem + ample comments about how I arrived at it. I’m not sure how this qualifies as “random snippets." —Kevin > On May 20, 2015, at 5:20 PM, Dirk Eddelbuettel wrote: > > > On 20 May 20

Re: [Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Dirk Eddelbuettel
On 20 May 2015 at 15:22, Kevin Thornton wrote: | Hi, | | I’m currently working on a header-only library that it intended to act as a | “glue" layer between an existing C++11 library (also header only) and R, by | means of Rcpp. | | Basically, I am trying to provide some generic templates that pe

[Rcpp-devel] Bizarre Rcpp::XPtr problem on GCC

2015-05-20 Thread Kevin Thornton
Hi, I’m currently working on a header-only library that it intended to act as a “glue" layer between an existing C++11 library (also header only) and R, by means of Rcpp. Basically, I am trying to provide some generic templates that perform operations using the existing C++11 library and retur