Re: [R-pkg-devel] Problem calling R random number generator from Fortran

2023-08-25 Thread Ivan Krylov
В Fri, 25 Aug 2023 11:27:46 -0400 Stephen Meyers пишет: > /error: implicit declaration of function 'rand_unif' is invalid in > C99 [-Werror,-Wimplicit-function-declaration]// //double > F77_SUB(getunif)(void) { return rand_unif(); I think you meant unif_rand(), not rand_unif(): https://cran.r-p

[R-pkg-devel] Problem calling R random number generator from Fortran

2023-08-25 Thread Stephen Meyers
Hello everyone, I'm updating the 'astrochron' R package, and I am trying to remove the Fortran intrinsic RANDOM_NUMBER from source code, and replace it with R's rand_unif.  I've followed this approach: https://cran.r-project.org/doc/manuals/R-exts.html#Calling-C-from-Fortran-and-vice-versa but