Skip to content

[Rcpp-devel] Compile errors when including Rcpp 0.11.0

3 messages · Kevin Ushey, Gabor Grothendieck

#
On Sat, Mar 1, 2014 at 2:36 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
As you never got a reproducible example, let me jump in to this old
thread as the error discussed, viz.
   class Rcpp::InternalFunction_Impl<Rcpp::PreserveStorage>' has no
member named 'update'
comes up with both the version of Rcpp on CRAN as well as the version
on github when running
this reproducible example:

code <- '
#include <Rcpp.h>
using namespace Rcpp ;

void callback(){
    Rprintf( "hello from calback\n" ) ;
}

// [[Rcpp::export]]
InternalFunction get_callback(){
    return InternalFunction(&callback) ;
}
'
library(Rcpp)
sourceCpp(code = code, verbose = TRUE)

This example is from Romain who posted it on SO here some time back
except I added a & before callback in the last line.
http://stackoverflow.com/questions/13904786/r-pointer-to-c-function/13910838#13910838

I am on Windows 8.1 and am using  "R version 3.1.0 Patched (2014-05-08 r65552)"

(Note that the version of Rcpp on github fails when installing during
building the vignette so I built it without vignettes; however, the
problem occurs on the CRAN version too as mentioned.)
#
The vignettes build fine for me. Can you provide more information
(perhaps as a GitHub issue)?

I'll take a look at InternalFunction. I think there was something
similar reported earlier.

Cheers,
Kevin

On Sat, May 10, 2014 at 12:44 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
#
Regarding the vignettes I got this error when running
github_install("RcppCore/Rcpp"):

LaTeX errors:
pp-FAQ.tex:516: pdfTeX error (font expansion): auto expansion is only possible
with scalable fonts
On Sat, May 10, 2014 at 4:41 PM, Kevin Ushey <kevinushey at gmail.com> wrote: