* installing *source* package 'PBSddesolve' ...
** package 'PBSddesolve' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: 'gcc.exe (GCC) 13.3.0'
make[1]: Entering directory '/d/temp/2025_11_15_13_14_52_3707/RtmpwJInro/R.INSTALL69403a2e502e/PBSddesolve/src'
gcc -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c PBSddesolve.c -o PBSddesolve.o
In file included from D:/RCompile/recent/R-4.4.3/include/Rdefines.h:41,
from PBSddesolve.c:2:
PBSddesolve.c: In function 'startDDE':
PBSddesolve.c:349:24: warning: implicit declaration of function 'R_ClosureFormals' [-Wimplicit-function-declaration]
349 | list = PROTECT(R_ClosureFormals(gradFunc)); /* protect 1 */
| ^~~~~~~~~~~~~~~~
D:/RCompile/recent/R-4.4.3/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT'
371 | #define PROTECT(s) Rf_protect(s)
| ^
PBSddesolve.c:349:24: warning: passing argument 1 of 'Rf_protect' makes pointer from integer without a cast [-Wint-conversion]
349 | list = PROTECT(R_ClosureFormals(gradFunc)); /* protect 1 */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
D:/RCompile/recent/R-4.4.3/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT'
371 | #define PROTECT(s) Rf_protect(s)
| ^
D:/RCompile/recent/R-4.4.3/include/Rinternals.h:1110:17: note: expected 'SEXP' {aka 'struct SEXPREC *'} but argument is of type 'int'
1110 | SEXP Rf_protect(SEXP);
| ^~~~
gcc -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ddeq.c -o ddeq.o
gcc -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o
gcc -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c r_model.c -o r_model.o
gcc -shared -s -static-libgcc -o PBSddesolve.dll tmp.def PBSddesolve.o ddeq.o init.o r_model.o -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.4.3/bin/x64 -lR
D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: PBSddesolve.o:PBSddesolve.c:(.text+0xdb7): undefined reference to `R_ClosureFormals'
collect2.exe: error: ld returned 1 exit status
make[1]: Leaving directory '/d/temp/2025_11_15_13_14_52_3707/RtmpwJInro/R.INSTALL69403a2e502e/PBSddesolve/src'
make[1]: Entering directory '/d/temp/2025_11_15_13_14_52_3707/RtmpwJInro/R.INSTALL69403a2e502e/PBSddesolve/src'
make[1]: Leaving directory '/d/temp/2025_11_15_13_14_52_3707/RtmpwJInro/R.INSTALL69403a2e502e/PBSddesolve/src'
no DLL was created
ERROR: compilation failed for package 'PBSddesolve'
* removing 'd:/Rcompile/CRANpkg/lib/4.4/PBSddesolve'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.4/PBSddesolve'