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

Goran Brostrom (gb@pc30.stat.umu.se)
Mon, 18 Aug 1997 14:10:10 +0200 (MET DST)


Date: Mon, 18 Aug 1997 14:10:10 +0200 (MET DST)
From: Goran Brostrom <gb@pc30.stat.umu.se>
To: r-help@stat.math.ethz.ch
Subject: R-beta: .C and dyn.load for Windows
Message-Id: <Pine.GSO.3.95.970818135113.11654A-100000@pc30.stat.umu.se>

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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=