There's a problem showing up on CRAN labeled as "Strict". It looks like we're no longer allowed to use the C functions Calloc() and Realloc(), defined in R_ext/RS.h.
simulate.c: In function 'sim_bc':
simulate.c:134:21: error: implicit declaration of function 'Calloc'; did you mean 'calloc'? [-Wimplicit-function-declaration]
134 | chi = (double *)Calloc(max_chi, double);
| ^~~~~~
| calloc
simulate.c:134:37: error: expected expression before 'double'
134 | chi = (double *)Calloc(max_chi, double);
| ^~~~~~
simulate.c:153:29: error: implicit declaration of function 'Realloc'; did you mean 'realloc'? [-Wimplicit-function-declaration]
153 | chi = (double *)Realloc(chi, max_chi, double);
| ^~~~~~~
| realloc
simulate.c:153:51: error: expected expression before 'double'
153 | chi = (double *)Realloc(chi, max_chi, double);
| ^~~~~~
simulate.c:206:5: error: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration]
206 | Free(chi);
| ^~~~
| free
It is intended that ‘STRICT_R_HEADERS’ will become the default prior to release. This will remove the legacy definitions of PI, Calloc, Realloc and Free: use M_PI, R_Calloc, R_Realloc or R_Free instead.
There's a problem showing up on CRAN labeled as "Strict". It looks like we're no longer allowed to use the C functions
Calloc()
andRealloc()
, defined inR_ext/RS.h
.