[R] creating dll file

Paulo J. Ribeiro Jr p.ribeiro at lancaster.ac.uk
Thu Nov 9 16:00:20 CET 2000

I'm trying to create a dll file for the windows distribution of a package.

I've tried  mingw32 and cygwin with the commands given below and it seems 
that there is a problem related with C random() function.  
(-mno-cygwin only included when using cygwin)

Can anybody tell me how to go around this?

$ gcc -O2 -mno-cygwin -c function.c
$ dllwrap -o function.dll -mno-cygwin --export-all-symbols function.o 
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
/usr/bin/ld: warning: cannot find entry symbol
__cygwin_dll_entry at 12; defaulting
 to 64f81000
function.o(.text+0x164a):function.c: undefined reference to `random'
function.o(.text+0x168f):function.c: undefined reference to `random'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1


Paulo Justiniano Ribeiro Jr
Dept Maths & Stats  -  Fylde College
Lancaster University
Lancaster LA1 4YF   -  U.K.

e-mail: paulojus at est.ufpr.br

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list