-----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-----
[Rcpp-devel] Compile errors when including Rcpp 0.11
4 messages · Jonathon Love, Dirk Eddelbuettel
Hi Jonathon,
On 1 March 2014 at 17:43, Jonathon Love wrote:
| 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 [ Releases have standard triple-version names, so it is 0.11.0 right now. ] | 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' That sounds suspiciously like something Kevin fixed shortly after the release. Could you try the version in the GitHub repo at https://github.com/RcppCore/Rcpp and see if that works? Thanks, Dirk | | 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----- | _______________________________________________ | Rcpp-devel mailing list | Rcpp-devel at lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi Dirk, Thanks for your speedy response.
That sounds suspiciously like something Kevin fixed shortly after the release. Could you try the version in the GitHub repo at https://github.com/RcppCore/Rcpp and see if that works?
It didn't work, I get the same error.
I installed from github using:
install_github("RcppCore/Rcpp")
this updated my Rcpp to version 0.11.0.2
but the problem persists.
Any further suggestions?
with thanks
- --
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/
iQIcBAEBCgAGBQJTEjPAAAoJEH277gjmPGDYoe4QAOG3F4oHaZ3+P0rrbetocMPY
4DKB1TSymFMoLsFs0HPuVv9+bvpcfcBoZXC4+hGiP3NsUvtCGetLTkAT+n177+ZS
GKiTYWtD/GLnDs9WtSO01nkRIZk2M9bE7OnQOi35CywMYiAhtIiJxAL/pQv5k5b1
s3DUzkvq3rEuHH09h+XkUrbnF0T9khbTpgHQ04hvJUREyj6NuqArp1Gmj5TGZ7Un
miOOyx0w4QKHdFu8gy3CfXsDp5IzHtkMe0iu53EjHlOHWUXOjrp+XiKzty6kbhtN
AqpZoYsed3s577lP9B2O7hk/ll+R10Brr7eGGk1CBKWjEBCBZOTsJHmQdm6JfYKd
0+ZocIJHWuYq0iNzU+BDAoLOCafW+VRUnAm+npxmjUEk4W9OKI8pL+GBobrnN2p4
qaL/vCR3Q0TAw+lmutI69v4WrDDT5xqTuULIyn4b9PNZL27HxBTVd2UfnM+ob8Er
PsSSK3yw33ZGaMkqx5FATYA6Zu/PX+ulJb354aJl+9s8T6Ekt4B7qo9VCHfwW7I+
T2hBvYQqMZPoFjWGpBgphh8NibQW5m5Xybm/5PVNbcqXvz0t/yuDdq8QLUj9W2TJ
mFhaeItXeqlHe26S+cAqm2o5xOteZr78w/6CBbGWkxd3YPQh8ygsJkXEMiMQLsVJ
90vnRCK0FBG6vBudDPut
=XvAQ
-----END PGP SIGNATURE-----
On 1 March 2014 at 20:23, Jonathon Love wrote:
| It didn't work, I get the same error.
|
| I installed from github using:
|
| install_github("RcppCore/Rcpp")
|
| this updated my Rcpp to version 0.11.0.2
|
| but the problem persists.
|
| Any further suggestions?
Not really. A minimal reproducible example would help.
The corpus of now 180 packages at CRAN work across OS X, Windows and Linux;
as do 19 BioC packages in the next release plus an unknowable number of
private packages.
But there can always be fresh bugs in unseen code. But to fix something, it
helps tremendously to be able to reproduce it.
Can you assist with a small example?
Dirk
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com