[R-pkg-devel] CRAN check linux gcc12 Boost error
Dear all, I send this message after a good call from I?aki Ucar. The compilation error with gcc12 I had for spNetwork was very likely caused by some namespace pollution : using namespace std; After removing it and adding std:: were needed, I was able to compile the package on a Docker with gcc12 (https://hub.docker.com/r/rocker/r-edge/tags) thanks to the maintainer from the package BH. Long story short, if you use BH in your package and have some weird compilation error with gcc12, it could be caused by namespace pollution. All the best Le dim. 10 avr. 2022 ? 14:32, j?r?my Gelb <gelbjeremy22 at gmail.com> a ?crit :
Dear all, A package I am developing is encountering an error on the platform (r-devel-linux-x86_64-debian-gcc) since CRAN decided to force the use of gcc12. The error is caused by the use of the bh package and the c++ Boost geometry library. Boost is not supposed to be compiled with gcc12 ( https://www.boost.org/users/history/version_1_78_0.html), but I really would like to continue to use it in my package. Is there a way to ensure that an "older" version (11 should be fine) is available and used when the package is installed and display an error message otherwise? Thank you ! -- *J?r?my GELB* Assistant de recherche ? l'*INRS* Docteur en ?tudes Urbaines 514 658 6054 gelbjeremy22 at gmail.com F-4221 Avenue Coloniale H2W2C3 Montr?al Quebec
*J?r?my GELB* Assistant de recherche ? l'*INRS* Docteur en ?tudes Urbaines 514 658 6054 gelbjeremy22 at gmail.com F-4221 Avenue Coloniale H2W2C3 Montr?al Quebec [[alternative HTML version deleted]]