[R] Building a dll for windows
Duncan Murdoch
murdoch at stats.uwo.ca
Wed Sep 19 15:34:27 CEST 2001
On Wed, 19 Sep 2001 12:53:31 -0400, you wrote in message
<01091912533100.03175 at serc-vm.ico.scs.es>:
>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
Rcmd.exe should be in the "bin" subdirectory of the R home directory.
If you're compiling things or putting together packages, it's a good
idea to put that directory on your path.
Other useful directories on your path if you're developing code:
1. the directory where you've got the collection of GNU tools (sed,
make, etc.)
2. the Perl bin directory
3. directories where you keep any other useful tools and batch files
you'll want to use
4. the Windows\command directory
5. the TeX bin directory
6. the HTML Help Workshop directory, if you're building Windows help
files.
My path has them in that order (with the R bin directory between 4 and
5); I'm not sure how crucial the order is, except that you definitely
want to find the GNU tools before you find similarly named tools from
other collections.
Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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