You can try placing this in your src/Makevars[.win] file: CXXFLAGS = -DBOOST_NO_LONG_LONG
The dplyr package does this (and more) to avoid 'long long' leaking in from Boost headers. See e.g. https://github.com/tidyverse/dplyr/blob/ff719f53f88f2f03a298fa0ea489b902527ee2f1/src/Makevars#L2 The other alternative would be to just enforce the use of C++11 in your package, by adding e.g. SystemRequirements: C++11 to your DESCRIPTION file, or CXX_STD = CXX11 to your src/Makevars[.win]. See https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-C_002b_002b11-code for more information. Best, Kevin On Thu, Apr 13, 2017 at 6:49 PM, Xiaojie Qiu <x...@uw.edu> 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? > The check log is here: > https://win-builder.r-project.org/incoming_pretest/170414_025235_DDRTree_015/00check.log > The windows install log is here: > https://win-builder.r-project.org/incoming_pretest/170414_025235_DDRTree_015/00install.out > > Thanks in advance! > > Best, > Xiaojie > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel