[R] Building shared libraries under Windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 31 17:14:02 CEST 2001


On Thu, 31 May 2001, Marco Taboga wrote:

> I didn't manage to build a c shared library under Windows.
> I used rcmd shlib both with a source file and with an object file, but I got error messages in both cases.
> I get the same error messages both using a Dos shell and Cygwin.
> If I use the source file, I type:
>     rcmd shlib prova.c

What version of R is this.  Looks like 1.2.1, so the first thing is to
update to 1.2.3!  And of Windows?

> and what I get is:
>     make[1]: `libR.a' is up to date.
>     windres --include-dir C:/R/RW1021/src/include  -i prova_res.rc -o prova_res.o
>     windres: no resources
>     make: *** [prova_res.o] Error 1
> If I use the object file, I type:
>     rcmd shlib prova

That should be prova.o ....

> and what I get is:
>     make[1]: `libR.a' is up to date.
>     make: *** No rule to make target `prova.o', needed by `prova.a'.  Stop.

Try making a small package instead: sometimes it work better.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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