* installing *source* package 'dhmeasures' ...
** this is package 'dhmeasures' version '1.0'
** package 'dhmeasures' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: 'g++.exe (GCC) 14.3.0'
make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpCQH8yO/R.INSTALL1712c1a543673/dhmeasures/src'
g++ -std=gnu++20 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c JSD.cpp -o JSD.o
In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
from JSD.cpp:1:
D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h: In constructor 'Rcpp::Function_Impl<StoragePolicy>::Function_Impl(const std::string&, const std::string&)':
D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h:75:65: error: 'R_NamespaceRegistry' was not declared in this scope
75 | Shield<SEXP> env(R_getVarEx(Rf_install(ns.c_str()), R_NamespaceRegistry, FALSE, R_UnboundValue));
| ^~~~~~~~~~~~~~~~~~~
JSD.cpp: In function 'double originalKLD(std::vector<double>&, std::vector<double>&)':
JSD.cpp:272:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<double>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
272 | for (int i = 0; i < P.size(); i++) {
| ~~^~~~~~~~~~
JSD.cpp: In function 'std::vector<double> findMidpoint(std::vector<double>&, std::vector<double>&)':
JSD.cpp:290:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<double>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
290 | for (int i = 0; i < P.size(); i++) {
| ~~^~~~~~~~~~
make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: JSD.o] Error 1
make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpCQH8yO/R.INSTALL1712c1a543673/dhmeasures/src'
ERROR: compilation failed for package 'dhmeasures'
* removing 'd:/Rcompile/CRANpkg/lib/4.6/dhmeasures'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.6/dhmeasures'