* installing *source* package 'NPBayesImputeCat' ...
** this is package 'NPBayesImputeCat' version '0.7'
** package 'NPBayesImputeCat' 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/Rtmpu2eF1f/R.INSTALL126f03f815fc8/NPBayesImputeCat/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 CData.cpp -o CData.o
In file included from CData.cpp:26:
In static member function 'static void* CArrayND<T>::flat2arrayND_ln(void*, int, int, int*) [with T = int]',
    inlined from 'static void* CArrayND<T>::flat2arrayND(void*, int, int, ...) [with T = int]' at CArrayND.h:77:25:
CArrayND.h:88:36: warning: 'lengths' may be used uninitialized [-Wmaybe-uninitialized]
   88 |                 size[0] = lengths[0];
      |                           ~~~~~~~~~^
CArrayND.h: In static member function 'static void* CArrayND<T>::flat2arrayND(void*, int, int, ...) [with T = int]':
CArrayND.h:68:21: note: 'lengths' declared here
   68 |                 int lengths[20];
      |                     ^~~~~~~
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 CEnv.cpp -o CEnv.o
In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                 from CEnv.cpp:18:
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));
      |                                                                 ^~~~~~~~~~~~~~~~~~~
make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: CEnv.o] Error 1
make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpu2eF1f/R.INSTALL126f03f815fc8/NPBayesImputeCat/src'
ERROR: compilation failed for package 'NPBayesImputeCat'
* removing 'd:/Rcompile/CRANpkg/lib/4.6/NPBayesImputeCat'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.6/NPBayesImputeCat'