[R-pkg-devel] Warning of DDRTree

Xiaojie Qiu xqiu at uw.edu
Sat Apr 15 03:56:40 CEST 2017


thanks a lot. I used the option on SystemRequirements: C++11 which works
pretty good

On Thu, Apr 13, 2017 at 7:40 PM Dirk Eddelbuettel <edd at debian.org> wrote:

>
> On 14 April 2017 at 01:49, Xiaojie Qiu wrote:
> | We are planning to update the DDRTree package but found the following
> | warnings:
> |
> |
>  d:/RCompile/CRANpkg/lib/3.4/BH/include/boost/unordered/detail/buckets.hpp:586:29:
> | warning: ISO C++ 1998 does not support 'long long' [-Wlong-long]
> |
>  d:/RCompile/CRANpkg/lib/3.4/BH/include/boost/unordered/detail/buckets.hpp:591:38:
> | warning: ISO C++ 1998 does not support 'long long' [-Wlong-long]
> |
> |  Those warnings seem to relate to boost but not to our package. Can
> anyone
> | have some idea on how to fix this?
>
> Yes. Compile the program as a C++11 program.
>
> My favourite way of saying that is via
>
>    CXX_STD = CXX11
>
> in src/Makevars. Now that all core systems (Win, OS X, Linux) used with R
> have proper C++11 compiler support this is no longer an issue.
>
> [ The underlying issue is boring. The powers that be decided a long time
> ago
> that only C++98 was real C++ in the context of R. And that old standard has
> no 'long long', hence the issue. Ironically, intermediate standards added
> long long but we were not aloud to play with it because someone else knew
> what's best for us. Luckily this is a thing of the past. ]
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list