* installing *source* package 'cpp11armadillotest' ... ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.2.0' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 01_eigen.cpp -o 01_eigen.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 01_ols.cpp -o 01_ols.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 03_leontief.cpp -o 03_leontief.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 04_capm.cpp -o 04_capm.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 05_chol.cpp -o 05_chol.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 06_qr.cpp -o 06_qr.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/cpp11/include' -I'D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c 07_typedefs.cpp -o 07_typedefs.o 07_typedefs.cpp: In function 'cpp11::integers typedef_uvec(const cpp11::integers&)': 07_typedefs.cpp:16:12: error: 'as_uvec' was not declared in this scope 16 | uvec y = as_uvec(x); | ^~~~~~~ 07_typedefs.cpp:17:21: error: no matching function for call to 'as_integers(arma::uvec&)' 17 | return as_integers(y); | ~~~~~~~~~~~^~~ In file included from D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo.hpp:10, from 00_main.h:3, from 07_typedefs.cpp:1: D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/vectors.hpp:65:17: note: candidate: 'cpp11::integers as_integers(const arma::Col&)' 65 | inline integers as_integers(const Col& x) { | ^~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/vectors.hpp:65:45: note: no known conversion for argument 1 from 'arma::uvec' {aka 'arma::Col'} to 'const arma::Col&' 65 | inline integers as_integers(const Col& x) { | ~~~~~~~~~~~~~~~~^ In file included from D:/RCompile/CRANpkg/lib/4.5/cpp11/include/cpp11.hpp:12, from D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/armadillo/r_compatible_messages.hpp:1, from D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/armadillo.hpp:29, from 00_main.h:1: D:/RCompile/CRANpkg/lib/4.5/cpp11/include/cpp11/integers.hpp:152:17: note: candidate: 'cpp11::integers cpp11::as_integers(SEXP)' 152 | inline integers as_integers(SEXP x) { | ^~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/cpp11/include/cpp11/integers.hpp:152:34: note: no known conversion for argument 1 from 'arma::uvec' {aka 'arma::Col'} to 'SEXP' {aka 'SEXPREC*'} 152 | inline integers as_integers(SEXP x) { | ~~~~~^ 07_typedefs.cpp: In function 'cpp11::doubles_matrix<> typedef_SpMat_double(cpp11::doubles_matrix<>&)': 07_typedefs.cpp:31:21: error: 'as_SpMat' was not declared in this scope; did you mean 'as_Mat'? 31 | SpMat y = as_SpMat(x); | ^~~~~~~~ | as_Mat 07_typedefs.cpp:32:27: error: no matching function for call to 'as_doubles_matrix(arma::SpMat&)' 32 | return as_doubles_matrix(y); | ~~~~~~~~~~~~~~~~~^~~ In file included from D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo.hpp:9: D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/matrices.hpp:80:25: note: candidate: 'cpp11::doubles_matrix<> as_doubles_matrix(const arma::Mat&)' 80 | inline doubles_matrix<> as_doubles_matrix(const Mat& A) { | ^~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/matrices.hpp:80:62: note: no known conversion for argument 1 from 'arma::SpMat' to 'const arma::Mat&' 80 | inline doubles_matrix<> as_doubles_matrix(const Mat& A) { | ~~~~~~~~~~~~~~~~~~~^ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/vectors.hpp:90:25: note: candidate: 'cpp11::doubles_matrix<> as_doubles_matrix(const arma::Col&)' 90 | inline doubles_matrix<> as_doubles_matrix(const Col& x) { | ^~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/vectors.hpp:90:62: note: no known conversion for argument 1 from 'arma::SpMat' to 'const arma::Col&' 90 | inline doubles_matrix<> as_doubles_matrix(const Col& x) { | ~~~~~~~~~~~~~~~~~~~^ 07_typedefs.cpp: In function 'cpp11::integers_matrix<> typedef_SpMat_int(cpp11::integers_matrix<>&)': 07_typedefs.cpp:36:18: error: 'as_SpMat' was not declared in this scope; did you mean 'as_Mat'? 36 | SpMat y = as_SpMat(x); | ^~~~~~~~ | as_Mat 07_typedefs.cpp:37:28: error: no matching function for call to 'as_integers_matrix(arma::SpMat&)' 37 | return as_integers_matrix(y); | ~~~~~~~~~~~~~~~~~~^~~ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/matrices.hpp:84:26: note: candidate: 'cpp11::integers_matrix<> as_integers_matrix(const arma::Mat&)' 84 | inline integers_matrix<> as_integers_matrix(const Mat& A) { | ^~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/matrices.hpp:84:61: note: no known conversion for argument 1 from 'arma::SpMat' to 'const arma::Mat&' 84 | inline integers_matrix<> as_integers_matrix(const Mat& A) { | ~~~~~~~~~~~~~~~~^ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/vectors.hpp:94:26: note: candidate: 'cpp11::integers_matrix<> as_integers_matrix(const arma::Col&)' 94 | inline integers_matrix<> as_integers_matrix(const Col& x) { | ^~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/cpp11armadillo/include/cpp11armadillo/vectors.hpp:94:61: note: no known conversion for argument 1 from 'arma::SpMat' to 'const arma::Col&' 94 | inline integers_matrix<> as_integers_matrix(const Col& x) { | ~~~~~~~~~~~~~~~~^ make: *** [D:/RCompile/recent/R/etc/x64/Makeconf:296: 07_typedefs.o] Error 1 ERROR: compilation failed for package 'cpp11armadillotest' * removing 'd:/RCompile/CRANincoming/R-devel/lib/cpp11armadillotest'