* installing *source* package 'mgee2' ... ** using staged installation ** libs using C compiler: 'gcc.exe (GCC) 13.2.0' gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c mgee2.c -o mgee2.o mgee2.c: In function 'Cgetmgee2v_i': mgee2.c:66:10: warning: variable 'one_ptr' set but not used [-Wunused-but-set-variable] 66 | int *one_ptr; | ^~~~~~~ mgee2.c: In function 'Cmgee2': mgee2.c:646:25: warning: variable 'len_Z' set but not used [-Wunused-but-set-variable] 646 | int nENUM, n_extID, len_Z, nrow_DM_i, nXDM_ENUM; | ^~~~~ mgee2.c:646:16: warning: variable 'n_extID' set but not used [-Wunused-but-set-variable] 646 | int nENUM, n_extID, len_Z, nrow_DM_i, nXDM_ENUM; | ^~~~~~~ mgee2.c:645:38: warning: variable 'convergence' set but not used [-Wunused-but-set-variable] 645 | int one, maxit, iter, last_iter, convergence; | ^~~~~~~~~~~ mgee2.c:645:27: warning: variable 'last_iter' set but not used [-Wunused-but-set-variable] 645 | int one, maxit, iter, last_iter, convergence; | ^~~~~~~~~ mgee2.c: In function 'get_cholinv': mgee2.c:2405:29: warning: implicit declaration of function 'Calloc'; did you mean 'calloc'? [-Wimplicit-function-declaration] 2405 | double *det = (double *)Calloc(2, double); // Allocate memory for 'det' using R's Calloc | ^~~~~~ | calloc mgee2.c:2405:39: error: expected expression before 'double' 2405 | double *det = (double *)Calloc(2, double); // Allocate memory for 'det' using R's Calloc | ^~~~~~ mgee2.c:2406:44: error: expected expression before 'double' 2406 | double *z = (double *)Calloc(X->nrows, double); | ^~~~~~ mgee2.c:2438:5: warning: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 2438 | Free(z); Free(det); | ^~~~ | free mgee2.c: In function 'cholinv': mgee2.c:2872:39: error: expected expression before 'double' 2872 | double *det = (double *)Calloc(2, double); // Allocate memory for 'det' using R's Calloc | ^~~~~~ mgee2.c:2873:44: error: expected expression before 'double' 2873 | double *z = (double *)Calloc(X->nrows, double); | ^~~~~~ mgee2.c: In function 'get_dvd': mgee2.c:3003:12: warning: variable 'elem' set but not used [-Wunused-but-set-variable] 3003 | double elem; | ^~~~ mgee2.c: At top level: mgee2.c:3259:15: warning: 'get_1_rowsum' defined but not used [-Wunused-function] 3259 | static double get_1_rowsum(MATRIX *X, int i) | ^~~~~~~~~~~~ mgee2.c:2921:13: warning: 'outer_colvec_to' defined but not used [-Wunused-function] 2921 | static void outer_colvec_to(MATRIX *colvec, | ^~~~~~~~~~~~~~~ mgee2.c:2823:13: warning: 'get_matmult' defined but not used [-Wunused-function] 2823 | static void get_matmult(MATRIX *mat1, | ^~~~~~~~~~~ mgee2.c:2781:13: warning: 'get_matadd' defined but not used [-Wunused-function] 2781 | static void get_matadd(MATRIX *mat1, | ^~~~~~~~~~ mgee2.c:2756:13: warning: 'get_matsub' defined but not used [-Wunused-function] 2756 | static void get_matsub(MATRIX *mat1, | ^~~~~~~~~~ mgee2.c:2686:13: warning: 'matrix_col_mult' defined but not used [-Wunused-function] 2686 | static void matrix_col_mult(MATRIX *colvec, MATRIX *outmat) /* col vector times a matrix*/ | ^~~~~~~~~~~~~~~ mgee2.c:2661:13: warning: 'matrix_row_mult' defined but not used [-Wunused-function] 2661 | static void matrix_row_mult(MATRIX *rowvec, MATRIX *outmat) /* row vector times a matrix*/ | ^~~~~~~~~~~~~~~ mgee2.c:2639:13: warning: 'matrix_elem_mult' defined but not used [-Wunused-function] 2639 | static void matrix_elem_mult(MATRIX *inmat, MATRIX *outmat) | ^~~~~~~~~~~~~~~~ mgee2.c:2608:16: warning: 'matrix_multiply' defined but not used [-Wunused-function] 2608 | static MATRIX *matrix_multiply(MATRIX *mat1, MATRIX *mat2) | ^~~~~~~~~~~~~~~ mgee2.c:2582:16: warning: 'matrix_subtract' defined but not used [-Wunused-function] 2582 | static MATRIX *matrix_subtract(MATRIX *mat1, MATRIX *mat2) | ^~~~~~~~~~~~~~~ mgee2.c:2508:13: warning: 'rows_plug' defined but not used [-Wunused-function] 2508 | static void rows_plug(MATRIX *inmat, int i1, int i2, MATRIX *outmat, int j) | ^~~~~~~~~ mgee2.c:2484:13: warning: 'col_replace' defined but not used [-Wunused-function] 2484 | static void col_replace(MATRIX *inmat, int i, MATRIX *outmat, int j) | ^~~~~~~~~~~ mgee2.c:2463:13: warning: 'row_replace' defined but not used [-Wunused-function] 2463 | static void row_replace(MATRIX *inmat, int i, MATRIX *outmat, int j) | ^~~~~~~~~~~ mgee2.c:2095:16: warning: 'get_cbind' defined but not used [-Wunused-function] 2095 | static MATRIX *get_cbind(MATRIX *mat1, MATRIX *mat2){ | ^~~~~~~~~ mgee2.c:1918:16: warning: 'VC_GEE_matexpit' defined but not used [-Wunused-function] 1918 | static MATRIX *VC_GEE_matexpit(MATRIX *x){ | ^~~~~~~~~~~~~~~ mgee2.c:1892:16: warning: 'get_sum2col' defined but not used [-Wunused-function] 1892 | static MATRIX *get_sum2col(MATRIX *inmat){ | ^~~~~~~~~~~ mgee2.c:1866:16: warning: 'get_sum1row' defined but not used [-Wunused-function] 1866 | static MATRIX *get_sum1row(MATRIX *inmat){ | ^~~~~~~~~~~ mgee2.c:1844:16: warning: 'get_kronecker' defined but not used [-Wunused-function] 1844 | static MATRIX *get_kronecker(MATRIX *x, MATRIX *y){ | ^~~~~~~~~~~~~ mgee2.c:1824:16: warning: 'get_rep' defined but not used [-Wunused-function] 1824 | static MATRIX *get_rep(MATRIX *x, int nrep){ | ^~~~~~~ mgee2.c:1810:16: warning: 'get_rep_scalar' defined but not used [-Wunused-function] 1810 | static MATRIX *get_rep_scalar(int a, int nrep){ | ^~~~~~~~~~~~~~ mgee2.c:1795:16: warning: 'get_seq1' defined but not used [-Wunused-function] 1795 | static MATRIX *get_seq1(int el_start, int end){ | ^~~~~~~~ mgee2.c:1778:16: warning: 'VC_GEE_mat1over' defined but not used [-Wunused-function] 1778 | static MATRIX *VC_GEE_mat1over(MATRIX *x){ | ^~~~~~~~~~~~~~~ mgee2.c:1762:16: warning: 'VC_GEE_matsqrt' defined but not used [-Wunused-function] 1762 | static MATRIX *VC_GEE_matsqrt(MATRIX *x){ | ^~~~~~~~~~~~~~ mgee2.c:1744:16: warning: 'VC_GEE_diag_as_vec' defined but not used [-Wunused-function] 1744 | static MATRIX *VC_GEE_diag_as_vec(MATRIX *inmat){ | ^~~~~~~~~~~~~~~~~~ mgee2.c:1721:12: warning: 'VC_GEE_nchanges' defined but not used [-Wunused-function] 1721 | static int VC_GEE_nchanges(MATRIX *X){ | ^~~~~~~~~~~~~~~ mgee2.c:1709:16: warning: 'VC_GEE_col_1s' defined but not used [-Wunused-function] 1709 | static MATRIX *VC_GEE_col_1s(int k){ | ^~~~~~~~~~~~~ mgee2.c:1698:16: warning: 'VC_GEE_ident' defined but not used [-Wunused-function] 1698 | static MATRIX *VC_GEE_ident(int ord){ | ^~~~~~~~~~~~ mgee2.c:1682:16: warning: 'VC_GEE_scalar_times_matrix' defined but not used [-Wunused-function] 1682 | static MATRIX *VC_GEE_scalar_times_matrix(double a, MATRIX *X){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ mgee2.c:1652:16: warning: 'VC_GEE_pxq_divby_px1' defined but not used [-Wunused-function] 1652 | static MATRIX *VC_GEE_pxq_divby_px1(MATRIX *pxq, MATRIX *px1){ | ^~~~~~~~~~~~~~~~~~~~ mgee2.c:1622:16: warning: 'VC_GEE_px1_times_pxq' defined but not used [-Wunused-function] 1622 | static MATRIX *VC_GEE_px1_times_pxq(MATRIX *px1, MATRIX *pxq){ | ^~~~~~~~~~~~~~~~~~~~ mgee2.c:1528:16: warning: 'VC_GEE_matadd' defined but not used [-Wunused-function] 1528 | static MATRIX *VC_GEE_matadd(MATRIX *mat1, MATRIX *mat2){ | ^~~~~~~~~~~~~ mgee2.c:1512:16: warning: 'VC_GEE_matexp' defined but not used [-Wunused-function] 1512 | static MATRIX *VC_GEE_matexp(MATRIX *x){ | ^~~~~~~~~~~~~ mgee2.c:1494:15: warning: 'VC_GEE_matmax' defined but not used [-Wunused-function] 1494 | static double VC_GEE_matmax(MATRIX *x){ | ^~~~~~~~~~~~~ mgee2.c:1478:16: warning: 'VC_GEE_matabs' defined but not used [-Wunused-function] 1478 | static MATRIX *VC_GEE_matabs(MATRIX *x){ | ^~~~~~~~~~~~~ mgee2.c:1464:15: warning: 'VC_GEE_elsum' defined but not used [-Wunused-function] 1464 | static double VC_GEE_elsum(MATRIX *x) | ^~~~~~~~~~~~ mgee2.c:1391:12: warning: 'VC_GEE_split' defined but not used [-Wunused-function] 1391 | static int VC_GEE_split(MATRIX *matptr, MATRIX *discptr, MATRIX *matarrptr[]){ | ^~~~~~~~~~~~ mgee2.c:1367:16: warning: 'VC_GEE_extract_cols' defined but not used [-Wunused-function] 1367 | static MATRIX *VC_GEE_extract_cols(MATRIX *x, int VC_GEE_start, int end){ | ^~~~~~~~~~~~~~~~~~~ make: *** [D:/RCompile/recent/R/etc/x64/Makeconf:290: mgee2.o] Error 1 ERROR: compilation failed for package 'mgee2' * removing 'd:/RCompile/CRANincoming/R-devel/lib/mgee2'