* installing *source* package 'BAMBI' ... ** package 'BAMBI' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2024_12_22_01_50_00_26287/RtmpgHsg7s/R.INSTALL954c7e6c11d7/BAMBI/src' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c basic_c_fns.cpp -o basic_c_fns.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c univm_llik_grad.cpp -o univm_llik_grad.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c uniwnorm_llik_grad.cpp -o uniwnorm_llik_grad.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c vmcos_llik_grad.cpp -o vmcos_llik_grad.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c vmsin_llik_grad.cpp -o vmsin_llik_grad.o vmsin_llik_grad.cpp: In function 'arma::vec d_const_vmsin(arma::vec)': vmsin_llik_grad.cpp:92:28: error: 'Rf_choose' cannot be used as a function 92 | double choose = Rf_choose(2*p, p), | ~~~~~~~~~^~~~~~~~ vmsin_llik_grad.cpp:101:29: error: 'rat_pow_p' was not declared in this scope 101 | double temp_c = choose * rat_pow_p * I_p_k1 * I_p_k2, | ^~~~~~~~~ vmsin_llik_grad.cpp:101:41: error: 'I_p_k1' was not declared in this scope 101 | double temp_c = choose * rat_pow_p * I_p_k1 * I_p_k2, | ^~~~~~ vmsin_llik_grad.cpp:101:50: error: 'I_p_k2' was not declared in this scope 101 | double temp_c = choose * rat_pow_p * I_p_k1 * I_p_k2, | ^~~~~~ vmsin_llik_grad.cpp:110:11: error: 'temp_c_k1' was not declared in this scope; did you mean 'temp_c'? 110 | c_k1 += temp_c_k1; | ^~~~~~~~~ | temp_c vmsin_llik_grad.cpp:111:11: error: 'temp_c_k2' was not declared in this scope; did you mean 'temp_c'? 111 | c_k2 += temp_c_k2; | ^~~~~~~~~ | temp_c vmsin_llik_grad.cpp:112:31: error: 'temp_c_lambda' was not declared in this scope; did you mean 'c_lambda'? 112 | if(lambda != 0) c_lambda += temp_c_lambda; | ^~~~~~~~~~~~~ | c_lambda vmsin_llik_grad.cpp:120:23: error: 'Rf_choose' cannot be used as a function 120 | choose = Rf_choose(2*p, p); | ~~~~~~~~~^~~~~~~~ vmsin_llik_grad.cpp:122:14: error: 'I_pplus1_k1' was not declared in this scope 122 | I_p_k1 = I_pplus1_k1; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:123:14: error: 'I_pplus1_k2' was not declared in this scope 123 | I_p_k2 = I_pplus1_k2; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:132:21: error: 'temp_c_lambda' was not declared in this scope; did you mean 'c_lambda'? 132 | if(lambda != 0) temp_c_lambda = p * choose * rat_pow_p * I_p_k1 * I_p_k2; | ^~~~~~~~~~~~~ | c_lambda vmsin_llik_grad.cpp:140:33: error: 'temp_c_lambda' was not declared in this scope; did you mean 'c_lambda'? 140 | if(lambda != 0) c_lambda += temp_c_lambda; | ^~~~~~~~~~~~~ | c_lambda vmsin_llik_grad.cpp: In function 'Rcpp::List vmsin_var_corr_anltc(double, double, double)': vmsin_llik_grad.cpp:826:28: error: 'Rf_choose' cannot be used as a function 826 | double choose = Rf_choose(2*p, p), | ~~~~~~~~~^~~~~~~~ vmsin_llik_grad.cpp:835:29: error: 'rat_pow_p' was not declared in this scope 835 | double temp_c = choose * rat_pow_p * I_p_k1 * I_p_k2, | ^~~~~~~~~ vmsin_llik_grad.cpp:835:41: error: 'I_p_k1' was not declared in this scope 835 | double temp_c = choose * rat_pow_p * I_p_k1 * I_p_k2, | ^~~~~~ vmsin_llik_grad.cpp:835:50: error: 'I_p_k2' was not declared in this scope 835 | double temp_c = choose * rat_pow_p * I_p_k1 * I_p_k2, | ^~~~~~ vmsin_llik_grad.cpp:848:11: error: 'temp_c_k1' was not declared in this scope; did you mean 'temp_c'? 848 | c_k1 += temp_c_k1; | ^~~~~~~~~ | temp_c vmsin_llik_grad.cpp:849:11: error: 'temp_c_k2' was not declared in this scope; did you mean 'temp_c'? 849 | c_k2 += temp_c_k2; | ^~~~~~~~~ | temp_c vmsin_llik_grad.cpp:850:31: error: 'temp_c_lambda' was not declared in this scope; did you mean 'c_lambda'? 850 | if(lambda != 0) c_lambda += temp_c_lambda; | ^~~~~~~~~~~~~ | c_lambda vmsin_llik_grad.cpp:851:13: error: 'temp_c_k1k2' was not declared in this scope 851 | c_k1k2 += temp_c_k1k2; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:852:13: error: 'temp_c_k1k1' was not declared in this scope 852 | c_k1k1 += temp_c_k1k1; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:853:13: error: 'temp_c_k2k2' was not declared in this scope 853 | c_k2k2 += temp_c_k2k2; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:860:23: error: 'Rf_choose' cannot be used as a function 860 | choose = Rf_choose(2*p, p); | ~~~~~~~~~^~~~~~~~ vmsin_llik_grad.cpp:862:14: error: 'I_pplus1_k1' was not declared in this scope 862 | I_p_k1 = I_pplus1_k1; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:863:14: error: 'I_pplus1_k2' was not declared in this scope 863 | I_p_k2 = I_pplus1_k2; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:864:19: error: 'I_pplus2_k1' was not declared in this scope 864 | I_pplus1_k1 = I_pplus2_k1; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:865:19: error: 'I_pplus2_k2' was not declared in this scope 865 | I_pplus1_k2 = I_pplus2_k2; | ^~~~~~~~~~~ vmsin_llik_grad.cpp:872:22: error: 'temp_c_lambda' was not declared in this scope; did you mean 'c_lambda'? 872 | if (lambda != 0) temp_c_lambda = p * choose * rat_pow_p * I_p_k1 * I_p_k2; | ^~~~~~~~~~~~~ | c_lambda vmsin_llik_grad.cpp:880:33: error: 'temp_c_lambda' was not declared in this scope; did you mean 'c_lambda'? 880 | if(lambda != 0) c_lambda += temp_c_lambda; | ^~~~~~~~~~~~~ | c_lambda make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:297: vmsin_llik_grad.o] Error 1 make[1]: Leaving directory '/d/temp/2024_12_22_01_50_00_26287/RtmpgHsg7s/R.INSTALL954c7e6c11d7/BAMBI/src' ERROR: compilation failed for package 'BAMBI' * removing 'd:/Rcompile/CRANpkg/lib/4.5/BAMBI' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.5/BAMBI'