* installing *source* package 'image.CannyEdges' ... ** using staged installation ** libs using C compiler: 'gcc.exe (GCC) 12.3.0' using C++ compiler: 'g++.exe (GCC) 12.3.0' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o In file included from D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/routines.h:26, from D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/RcppCommon.h:128, from D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp.h:27, from RcppExports.cpp:4: D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function 'std::streamsize Rcpp::Rstreambuf::xsputn(const char*, std::streamsize) [with bool OUTPUT = true; std::streamsize = long long int]': D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h:53:20: warning: field precision specifier '.*' expects argument of type 'int', but argument 2 has type 'std::streamsize' {aka 'long long int'} [-Wformat=] 53 | Rprintf("%.*s", num, s); | ~~^~ ~~~ | | | | int std::streamsize {aka long long int} D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function 'std::streamsize Rcpp::Rstreambuf::xsputn(const char*, std::streamsize) [with bool OUTPUT = false; std::streamsize = long long int]': D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h:57:21: warning: field precision specifier '.*' expects argument of type 'int', but argument 2 has type 'std::streamsize' {aka 'long long int'} [-Wformat=] 57 | REprintf("%.*s", num, s); | ~~^~ ~~~ | | | | int std::streamsize {aka long long int} gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c adsf.c -o adsf.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c rcpp_canny.cpp -o rcpp_canny.o In file included from D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/routines.h:26, from D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/RcppCommon.h:128, from D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp.h:27, from rcpp_canny.cpp:1: D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function 'std::streamsize Rcpp::Rstreambuf::xsputn(const char*, std::streamsize) [with bool OUTPUT = true; std::streamsize = long long int]': D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h:53:20: warning: field precision specifier '.*' expects argument of type 'int', but argument 2 has type 'std::streamsize' {aka 'long long int'} [-Wformat=] 53 | Rprintf("%.*s", num, s); | ~~^~ ~~~ | | | | int std::streamsize {aka long long int} D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function 'std::streamsize Rcpp::Rstreambuf::xsputn(const char*, std::streamsize) [with bool OUTPUT = false; std::streamsize = long long int]': D:/RCompile/CRANpkg/lib/4.4/Rcpp/include/Rcpp/iostream/Rstreambuf.h:57:21: warning: field precision specifier '.*' expects argument of type 'int', but argument 2 has type 'std::streamsize' {aka 'long long int'} [-Wformat=] 57 | REprintf("%.*s", num, s); | ~~^~ ~~~ | | | | int std::streamsize {aka long long int} rcpp_canny.cpp: In function 'int mirror(int, int, size_t, size_t)': rcpp_canny.cpp:21:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 21 | else | ^~~~ rcpp_canny.cpp:26:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 26 | if (y < 0) | ^~ rcpp_canny.cpp:28:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 28 | else | ^~~~ rcpp_canny.cpp:33:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 33 | return xt + nx*yt; | ^~~~~~ rcpp_canny.cpp: In function 'int extend(int, int, size_t, size_t)': rcpp_canny.cpp:42:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 42 | else | ^~~~ rcpp_canny.cpp:47:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 47 | if (y < 0) | ^~ rcpp_canny.cpp:49:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 49 | else | ^~~~ rcpp_canny.cpp:54:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 54 | return xt + nx*yt; | ^~~~~~ rcpp_canny.cpp: In function 'Rcpp::List canny_edge_detector(Rcpp::IntegerVector, int, int, double, double, double, bool)': rcpp_canny.cpp:188:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 188 | for(size_t x = 0 ; x < nx ; x++) | ^~~ rcpp_canny.cpp:203:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 203 | for(int d = 0 ; d < N ; d++) | ^~~ rcpp_canny.cpp:203:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] rcpp_canny.cpp:207:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 207 | adsf_assert_consistency(t,N); | ^~~~~~~~~~~~~~~~~~~~~~~ rcpp_canny.cpp:210:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 210 | for(int d = 0 ; d < N ; d++) | ^~~ rcpp_canny.cpp:216:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 216 | free(t); | ^~~~ gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c tools.c -o tools.o In file included from D:/RCompile/recent/R/include/R.h:73, from tools.c:25: tools.c: In function 'Rf_error': D:/RCompile/recent/R/include/R_ext/Error.h:68:15: warning: infinite recursion detected [-Winfinite-recursion] 68 | #define error Rf_error | ^~~~~~~~ tools.c:39:6: note: in expansion of macro 'error' 39 | void error(const char *fmt, ...) | ^~~~~ tools.c:41:3: note: recursive call 41 | Rf_error("%s", fmt); | ^~~~~~~~~~~~~~~~~~~ g++ -std=gnu++17 -shared -s -static-libgcc -o image.CannyEdges.dll tmp.def RcppExports.o adsf.o rcpp_canny.o tools.o -lpng -lfftw3 -lm -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR installing to d:/RCompile/CRANincoming/R-devel/lib/00LOCK-image.CannyEdges/00new/image.CannyEdges/libs/x64 ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (image.CannyEdges)