[R-pkg-devel] undefined reference to `R_registerRoutines' on Windows-devel

Sergio Ibarra-Espinosa @erg|o@|b@rr@ @end|ng |rom u@p@br
Mon Feb 8 15:54:02 CET 2021


Greetings,

I have been trying to pass an R package (https://github.com/atmoschem/vein)
to CRAN but I`m finding this error on Windows-devel:

C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe:
init.o:init.c:(.text+0x2c): undefined reference to
`R_registerRoutines'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe:
init.o:init.c:(.text+0x3c): undefined reference to
`R_useDynamicSymbols'
collect2.exe: error: ld returned 1 exit status
no DLL was created


I have used .Fortran without problems, but after a discussion in this
forum, I have started using dotCall64::.C64 with OMP

I created the init.c
with tools::package_native_routine_registration_skeleton(".") with the
correct number of arguments.

Thank you very much for your help

Sergio

*Sergio Ibarra Espinosa*
Postdoc in Atmospheric Sciences, Universidade de São Paulo

+  <++8617643016295>55 11 934 909 778  | +55 11 974 253 791
<+55+11+974+253+791> | sergio.ibarra using usp.br

www.sergioibarra.blogspot.com | *Skype*:
https://join.skype.com/invite/zO54pw651trE
<https://mail.google.com/mail/u/0/#SignatureSanitizer_SafeHtmlFilter_>
Rua do Matão, 1226 - Cidade Universitária São Paulo-SP - Brasil - 05508-090
<http://github.com/ibarraespinosa>
<https://zoom.us/j/6527509021?pwd=VmlXQWliR1JSZGtpS0tJR1A2dUZpZz09>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list