* installing *source* package 'mombf' ...
** package 'mombf' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: 'g++.exe (GCC) 13.3.0'
using C++17
make[1]: Entering directory '/d/temp/2024_12_22_01_50_00_26287/RtmpE1W6SR/R.INSTALLe041c9c40c/mombf/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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c Polynomial.cpp -o Polynomial.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c PolynomialRootFinder.cpp -o PolynomialRootFinder.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"      -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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c covariancemat.cpp -o covariancemat.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c crossprodmat.cpp -o crossprodmat.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c cstat.cpp -o cstat.o
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void sumsqbyclus(double*, int, int, int*, int, bool, double***)' at cstat.cpp:511:46:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void sumsqbyclus(double*, int, int, int*, int, bool, double***)':
cstat.cpp:482:16: note: returned from 'double** dmatrix(int, int, int, int)'
  482 |   xbar= dmatrix(1,nclus,1,p); m2= dmatrix(1,nclus,1,p);
      |         ~~~~~~~^~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void sumsqbyclus(double*, int, int, int*, int, bool, double***)' at cstat.cpp:511:46:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void sumsqbyclus(double*, int, int, int*, int, bool, double***)':
cstat.cpp:482:16: note: returned from 'double** dmatrix(int, int, int, int)'
  482 |   xbar= dmatrix(1,nclus,1,p); m2= dmatrix(1,nclus,1,p);
      |         ~~~~~~~^~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void sumsqbyclus(double*, int, int, int*, int, bool, double***)' at cstat.cpp:511:78:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void sumsqbyclus(double*, int, int, int*, int, bool, double***)':
cstat.cpp:482:42: note: returned from 'double** dmatrix(int, int, int, int)'
  482 |   xbar= dmatrix(1,nclus,1,p); m2= dmatrix(1,nclus,1,p);
      |                                   ~~~~~~~^~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void mahaldist(double*, int, int, double**, bool, double*)' at cstat.cpp:2148:15:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void mahaldist(double*, int, int, double**, bool, double*)':
cstat.cpp:2126:13: note: returned from 'double** dmatrix(int, int, int, int)'
 2126 |   z= dmatrix(1,n,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void mahaldist(double*, int, int, double**, bool, double*)' at cstat.cpp:2148:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void inv_posdef(double**, int, double**, bool*, double**, double**)' at cstat.cpp:3093:37:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)b + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void inv_posdef(double**, int, double**, bool*, double**, double**)':
cstat.cpp:3072:16: note: returned from 'double** dmatrix(int, int, int, int)'
 3072 |     b = dmatrix(1, n, 1, n);
      |         ~~~~~~~^~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void inv_posdef_upper(double**, int, double**, bool*)' at cstat.cpp:3135:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void inv_posdef_upper(double**, int, double**, bool*)':
cstat.cpp:3121:16: note: returned from 'double** dmatrix(int, int, int, int)'
 3121 |     b = dmatrix(1, n, 1, n);
      |         ~~~~~~~^~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void inv_posdef_upper(double**, int, double**, bool*)' at cstat.cpp:3135:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void invdet_posdef(double**, int, double**, double*)' at cstat.cpp:3179:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void invdet_posdef(double**, int, double**, double*)':
cstat.cpp:3157:16: note: returned from 'double** dmatrix(int, int, int, int)'
 3157 |     b = dmatrix(1, n, 1, n);
      |         ~~~~~~~^~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void invdet_posdef(double**, int, double**, double*)' at cstat.cpp:3179:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void invdet_posdef(double**, int, double**, double*)':
cstat.cpp:3157:16: note: returned from 'double** dmatrix(int, int, int, int)'
 3157 |     b = dmatrix(1, n, 1, n);
      |         ~~~~~~~^~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)' at cstat.cpp:715:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)':
cstat.cpp:694:19: note: returned from 'double** dmatrix(int, int, int, int)'
  694 |     Vsum = dmatrix(1, *p, 1, *p);
      |            ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)' at cstat.cpp:715:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)' at cstat.cpp:716:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)':
cstat.cpp:695:22: note: returned from 'double** dmatrix(int, int, int, int)'
  695 |     Vsuminv = dmatrix(1, *p, 1, *p);
      |               ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)' at cstat.cpp:716:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)' at cstat.cpp:717:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)':
cstat.cpp:696:23: note: returned from 'double** dmatrix(int, int, int, int)'
  696 |     cholVsum = dmatrix(1, *p, 1, *p);
      |                ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'double nn_integral(const double*, const double*, double**, const double*, const double*, const double*, double**, const double*, const int*, const int*)' at cstat.cpp:717:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void eigenvals(double**, int, double*)' at cstat.cpp:3568:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void eigenvals(double**, int, double*)':
cstat.cpp:3559:13: note: returned from 'double** dmatrix(int, int, int, int)'
 3559 |   b= dmatrix(1,n,1,n);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void eigenvals(double**, int, double*)' at cstat.cpp:3569:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void eigenvals(double**, int, double*)' at cstat.cpp:3568:15:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void eigenvals(double**, int, double*)':
cstat.cpp:3559:13: note: returned from 'double** dmatrix(int, int, int, int)'
 3559 |   b= dmatrix(1,n,1,n);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes_knownvar(double*, double*, double**, double**, double**, double*, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*)' at cstat.cpp:1031:21:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void lmbayes_knownvar(double*, double*, double**, double**, double**, double*, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*)':
cstat.cpp:1016:25: note: returned from 'double** dmatrix(int, int, int, int)'
 1016 |         cholVb = dmatrix(1, *p, 1, *p);
      |                  ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes_knownvar(double*, double*, double**, double**, double**, double*, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*)' at cstat.cpp:1031:21:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes_knownvar(double*, double*, double**, double**, double**, double*, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*)' at cstat.cpp:1035:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void lmbayes_knownvar(double*, double*, double**, double**, double**, double*, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*)':
cstat.cpp:1004:21: note: returned from 'double** dmatrix(int, int, int, int)'
 1004 |     Vb_inv = dmatrix(1, *p, 1, *p);   //posterior for beta
      |              ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes_knownvar(double*, double*, double**, double**, double**, double*, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*)' at cstat.cpp:1035:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes(double*, double*, double*, double**, double*, double*, double**, double**, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*, double*, double*)' at cstat.cpp:916:21:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void lmbayes(double*, double*, double*, double**, double*, double*, double**, double**, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*, double*, double*)':
cstat.cpp:902:25: note: returned from 'double** dmatrix(int, int, int, int)'
  902 |         cholVb = dmatrix(1, *p, 1, *p);
      |                  ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes(double*, double*, double*, double**, double*, double*, double**, double**, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*, double*, double*)' at cstat.cpp:916:21:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes(double*, double*, double*, double**, double*, double*, double**, double**, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*, double*, double*)' at cstat.cpp:920:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void lmbayes(double*, double*, double*, double**, double*, double*, double**, double**, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*, double*, double*)':
cstat.cpp:890:21: note: returned from 'double** dmatrix(int, int, int, int)'
  890 |     Vb_inv = dmatrix(1, *p, 1, *p);
      |              ~~~~~~~^~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void lmbayes(double*, double*, double*, double**, double*, double*, double**, double**, double*, int*, double*, double**, int*, int*, int*, double*, double**, double*, double*, double*)' at cstat.cpp:920:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rwishartC(double**, int, double**, int, bool)' at cstat.cpp:6037:17:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)cholans + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rwishartC(double**, int, double**, int, bool)' at cstat.cpp:6039:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rwishartC(double**, int, double**, int, bool)':
cstat.cpp:6025:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6025 |   Z= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rwishartC(double**, int, double**, int, bool)' at cstat.cpp:6037:17:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rwishartC(double**, int, double**, int, bool)':
cstat.cpp:6026:60: note: returned from 'double** dmatrix(int, int, int, int)'
 6026 |   if (returnChol) { cholans= ans; } else { cholans= dmatrix(1,p,1,p); }
      |                                                     ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:40:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:37: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                              ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:68:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:65: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:100:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:97: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:136:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:118: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                                               ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:15:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:40:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:37: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                              ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:68:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:65: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:100:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:97: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6546:136:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6533:118: note: returned from 'double** dmatrix(int, int, int, int)'
 6533 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                                               ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)' at cstat.cpp:6547:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlp(double*, int, int, int, double*, double*, int, int, double, int)':
cstat.cpp:6534:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6534 |   D= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:40:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:37: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                              ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:68:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:65: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:100:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:97: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:136:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:118: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                                               ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:15:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:40:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:37: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                              ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:68:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:65: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:100:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:97: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                          ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6452:136:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6398:118: note: returned from 'double** dmatrix(int, int, int, int)'
 6398 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p); cholSinv= dmatrix(1,p,1,p); inv_cholSinv= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                                                                                                               ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)' at cstat.cpp:6453:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rnlpPost_lm(double*, int, int, int, double*, double*, int, int, int, double, double, double, int)':
cstat.cpp:6399:13: note: returned from 'double** dmatrix(int, int, int, int)'
 6399 |   D= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rtmvnormProd(double*, int, int, double*, double**, int, double, double, int, int, int)' at cstat.cpp:5162:38:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rtmvnormProd(double*, int, int, double*, double**, int, double, double, int, int, int)':
cstat.cpp:5158:32: note: returned from 'double** dmatrix(int, int, int, int)'
 5158 |     y= dvector(1,p); S= dmatrix(1,p,1,p); cholS= dmatrix(1,p,1,p);
      |                         ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rtmvnormProd(double*, int, int, double*, double**, int, double, double, int, int, int)' at cstat.cpp:5162:38:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rtmvnormProd(double*, int, int, double*, double**, int, double, double, int, int, int)':
cstat.cpp:5158:32: note: returned from 'double** dmatrix(int, int, int, int)'
 5158 |     y= dvector(1,p); S= dmatrix(1,p,1,p); cholS= dmatrix(1,p,1,p);
      |                         ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rtmvnormProd(double*, int, int, double*, double**, int, double, double, int, int, int)' at cstat.cpp:5162:63:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rtmvnormProd(double*, int, int, double*, double**, int, double, double, int, int, int)':
cstat.cpp:5158:57: note: returned from 'double** dmatrix(int, int, int, int)'
 5158 |     y= dvector(1,p); S= dmatrix(1,p,1,p); cholS= dmatrix(1,p,1,p);
      |                                                  ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'SEXPREC* rtmvnormProdCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)' at cstat.cpp:5179:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'SEXPREC* rtmvnormProdCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)':
cstat.cpp:5172:13: note: returned from 'double** dmatrix(int, int, int, int)'
 5172 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'SEXPREC* rtmvnormProdCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)' at cstat.cpp:5185:15:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'SEXPREC* rtmvnormProdCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)':
cstat.cpp:5172:37: note: returned from 'double** dmatrix(int, int, int, int)'
 5172 |   S= dmatrix(1,p,1,p); Sinv= dmatrix(1,p,1,p);
      |                              ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'SEXPREC* rtmvnormProdCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)' at cstat.cpp:5185:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rtmvnorm(double*, int, int, double*, double**, double*, double*, int, int)' at cstat.cpp:4879:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rtmvnorm(double*, int, int, double*, double**, double*, double*, int, int)':
cstat.cpp:4856:13: note: returned from 'double** dmatrix(int, int, int, int)'
 4856 |   D= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rtmvnorm(double*, int, int, double*, double**, double*, double*, int, int)' at cstat.cpp:4879:15:
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rtmvnorm(double*, int, int, double*, double**, double*, double*, int, int)':
cstat.cpp:4856:13: note: returned from 'double** dmatrix(int, int, int, int)'
 4856 |   D= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'void rtmvnorm(double*, int, int, double*, double**, double*, double*, int, int)' at cstat.cpp:4879:40:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void rtmvnorm(double*, int, int, double*, double**, double*, double*, int, int)':
cstat.cpp:4856:34: note: returned from 'double** dmatrix(int, int, int, int)'
 4856 |   D= dmatrix(1,p,1,p); K= dmatrix(1,p,1,p);
      |                           ~~~~~~~^~~~~~~~~
In function 'void free_dmatrix(double**, int, int, int, int)',
    inlined from 'SEXPREC* rtmvnormCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)' at cstat.cpp:4898:15:
cstat.cpp:1388:17: warning: 'void free(void*)' called on pointer '*(double**)((char*)<unknown> + <unknown> *8)' with nonzero offset 8 [-Wfree-nonheap-object]
 1388 |             free((char *) (m[i]+ncl));
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
cstat.cpp:1392:13: warning: 'void free(void*)' called on pointer '<unknown>' with nonzero offset 8 [-Wfree-nonheap-object]
 1392 |         free((char *) (m+nrl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'SEXPREC* rtmvnormCI(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)':
cstat.cpp:4889:13: note: returned from 'double** dmatrix(int, int, int, int)'
 4889 |   S= dmatrix(1,p,1,p);
      |      ~~~~~~~^~~~~~~~~
In function 'void free_dvector(double*, int, int)',
    inlined from 'void dirmin(double*, double*, int, double*, double (*)(double*), int, double)' at cstat.cpp:9556:17:
cstat.cpp:1356:13: warning: 'void free(void*)' called on pointer 'xicom' with nonzero offset 8 [-Wfree-nonheap-object]
 1356 |         free((char  *) (v+nl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void dirmin(double*, double*, int, double*, double (*)(double*), int, double)':
cstat.cpp:9488:9: note: declared here
 9488 | double *xicom;
      |         ^~~~~
In function 'void free_dvector(double*, int, int)',
    inlined from 'void dirmin(double*, double*, int, double*, double (*)(double*), int, double)' at cstat.cpp:9557:17:
cstat.cpp:1356:13: warning: 'void free(void*)' called on pointer 'pcom' with nonzero offset 8 [-Wfree-nonheap-object]
 1356 |         free((char  *) (v+nl));
      |         ~~~~^~~~~~~~~~~~~~~~~~
cstat.cpp: In function 'void dirmin(double*, double*, int, double*, double (*)(double*), int, double)':
cstat.cpp:9487:9: note: declared here
 9487 | double *pcom;
      |         ^~~~
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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c ggm.cpp -o ggm.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c glm.cpp -o glm.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c mixtures.cpp -o mixtures.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c modelSel_regression.cpp -o modelSel_regression.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c modselFunction.cpp -o modselFunction.o
modselFunction.cpp: In member function 'double modselFunction::laplaceapprox(double*, double*, double**, double**, bool, std::map<std::__cxx11::basic_string<char>, double*>*)':
modselFunction.cpp:826:33: warning: 'mycholH' may be used uninitialized [-Wmaybe-uninitialized]
  826 |   if (cholH== NULL) free_dmatrix(mycholH, 1,this->thlength,1,this->thlength);
      |                     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modselFunction.cpp:798:26: note: 'mycholH' was declared here
  798 |   double ans, logdetH, **mycholH;
      |                          ^~~~~~~
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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c modselIntegrals.cpp -o modselIntegrals.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c nlpMarg.cpp -o nlpMarg.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"      -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -DR_NO_REMAP -c survival.cpp -o survival.o
g++ -shared -s -static-libgcc -o mombf.dll tmp.def Polynomial.o PolynomialRootFinder.o RcppExports.o covariancemat.o crossprodmat.o cstat.o ggm.o glm.o mixtures.o modelSel_regression.o modselFunction.o modselIntegrals.o nlpMarg.o survival.o -LD:/RCompile/recent/R/bin/x64 -lRlapack -LD:/RCompile/recent/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR
make[1]: Leaving directory '/d/temp/2024_12_22_01_50_00_26287/RtmpE1W6SR/R.INSTALLe041c9c40c/mombf/src'
make[1]: Entering directory '/d/temp/2024_12_22_01_50_00_26287/RtmpE1W6SR/R.INSTALLe041c9c40c/mombf/src'
make[1]: Leaving directory '/d/temp/2024_12_22_01_50_00_26287/RtmpE1W6SR/R.INSTALLe041c9c40c/mombf/src'
installing to d:/Rcompile/CRANpkg/lib/4.5/00LOCK-mombf/00new/mombf/libs/x64
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** 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
* MD5 sums
packaged installation of 'mombf' as mombf_3.5.4.zip
* DONE (mombf)