[Rcpp-devel] Compile errors when including Rcpp 0.11

Jonathon Love jon at thon.cc
Sat Mar 1 17:43:16 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

We've been using Rcpp in a project for some time now, and have found
it invaluable. However, we've just updated to 0.11 and when we try and
compile our project including the Rcpp header files, we get errors
(seems to work fine under clang++ on OSX). We're building using the
Rtools tools.

it errors on line 22 of PreserveStorage.h :

static_cast<CLASS&>(*this).update(data) ;

with the error:

'class Rcpp::InternalFunction_Impl<Rcpp::PreserveStorage>' has no
member named 'update'

the compete error is below.

any tips on how we might resolve this?

with thanks


In file included from
..\R-3.0.0\library\Rcpp\include/Rcpp/storage/storage.h:4:0,
                 from ..\R-3.0.0\library\Rcpp\include/RcppCommon.h:128,
                 from ..\R-3.0.0\library\Rcpp\include/Rcpp.h:27,
                 from
..\R-3.0.0\library\RInside\include/RInsideCommon.h:38,
                 from ..\R-3.0.0\library\RInside\include/RInside.h:26,
                 from ..\..\jasp-desktop\JASP-Engine\/rcppbridge.h:4,
                 from ..\..\jasp-desktop\JASP-Engine\rcppbridge.cpp:1:
..\R-3.0.0\library\Rcpp\include/Rcpp/storage/PreserveStorage.h: In
member function 'void Rcpp::PreserveStorage<CLASS>::set__(SEXP) [with
CLASS = Rcpp::InternalFunction_Impl<Rcpp::PreserveStorage>, SEXP =
SEXPREC*]':
..\R-3.0.0\library\Rcpp\include/Rcpp/InternalFunction.h:43:13:
instantiated from 'void
Rcpp::InternalFunction_Impl<StoragePolicy>::set(SEXP) [with
StoragePolicy = Rcpp::PreserveStorage, SEXP = SEXPREC*]'
..\R-3.0.0\library\Rcpp\include/Rcpp/generated/InternalFunction__ctors.h:29:3:
  instantiated from
'Rcpp::InternalFunction_Impl<StoragePolicy>::InternalFunction_Impl(OUT
(*)()) [with OUT = Rcpp::DataFrame_Impl<Rcpp::PreserveStorage>,
StoragePolicy = Rcpp::PreserveStorage]'
..\..\jasp-desktop\JASP-Engine\rcppbridge.cpp:14:90:   instantiated
from here
..\R-3.0.0\library\Rcpp\include/Rcpp/storage/PreserveStorage.h:22:13:
error: 'class Rcpp::InternalFunction_Impl<Rcpp::PreserveStorage>' has
no member named 'update'

- -- 

don't use google, use duckduckgo instead:

https://duckduckgo.com/supportus.html





-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - https://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJTEg4kAAoJEH277gjmPGDYSwgP/2SRh6kDXay5oy9JIOQr3LFt
HSQdhQcW3RuQ+L3Vgz5+AkHeRjscrwScmAgDg6vW5OBu1lztnI+aXYX4Ux4JWIk0
QWGeEsB8mvQfQqHTCrNdNKD9ZUJuGyOxFvtMONqRpRE0r2+CcEDLdXhEBAaWcM4N
JHUc3k94SWZkckpCVdvipWq/oKkscWWIXAp+0oqsCWO+YTtWeLUPjXRVFqddc99Q
VHfv2PCExczl5zH2ujL2eWtRjiPhE5Xgw3RSi8cfnvosEeEEr1ZBtYFVzPjF0LqB
juTBNuitSsc2MOVZYyEECRpTWWY3qnwoirJAXitvjMRvj/kEqpedU9X0R+JmsPBo
ny3X5dIrS7ybkK/69Iz9VibZ3CG86IoFDHZVPqasHy5QuHtZB2GBKZsnzsIUbAgu
KzY4PHzSl4ycBkj7D7LF/NLkYUlFg56G8ADQMV1clIW/xb87+43nvScvtvYxdGPI
8yRcirUegCsnrhZhZ6h/qK3oZhb6Wv5Knq2Pcn9UfUWv3AxW2nbMvd1kX+3an9LR
zr9cwoFaLSp6tun42khwyY8zNe9Tu3ca3ajmyf/JLZd6ZAMP/O82iHS3Vzz5T72D
qNOtjYz/YxbFYuXJI/LcZBSTWk1+Vm9SxIGn2SSezHSqvuITyZLN1yWcbePxZ8mz
VhQTM+BJvVktb0wnjfa4
=kpVR
-----END PGP SIGNATURE-----


More information about the Rcpp-devel mailing list