R-beta: .C and dyn.load for Windows

Goran Brostrom gb at pc30.stat.umu.se
Mon Aug 18 14:10:10 CEST 1997


Dear R-users,

I maintain software for survival analysis written in C and Fortran since
many years ago. Recently I have rewritten part of it as functions to
be called from R by .C. This works fine with the unix version. I just
create a ".so" file as described in an example in the R distribution.

However, when I try this approach in Windows (NT or 95), using the 
Cygnus gcc latest version, the "ld" command to create the ".so" file fails
miserably. The Windows R documentation talks about "DLL"s, of which I
know very little.

Can anyone tell me how to create R-loadable C-code with Cygnus gcc under
Windows (NT, 95)?
Maybe it isn't possible?

Goran Brostrom
Dept. of Statistics
Umea University
Umea, Sweden

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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