[R] Building a dll for windows

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Sep 19 13:57:50 CEST 2001


Victor Moreno <v.moreno at ico.scs.es> writes:

> This is a recurrent question but could not find the answer in the 
> documentation.
> 
> I want to build a dll for windows from a fortran program to be loaded with 
> dyn.load. I can do it easily for linux with: g77 -shared -o foo.dll foo.f
> 
> The g77 compiler (mingw-1.01) for windows does not recognise the -shared 
> option.
> 
> In windows the Writing extensions manual tells to use Rcmd SHLIB but I can't 
> find Rcmd
> 
> Any help would be appreciated.

Rcmd SHLIB is exactly for sorting out these OS differences.

Rcmd.exe should be sitting in the same directory as Rgui.exe. I'm not
quite sure whether it is selectable during installation.

Did you read

http://www.stats.ox.ac.uk/pub/Rtools/ ?

You might also want to have a look at the readme.packages file in the
top R directory.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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