[R] Fortran subroutines dblepr, realpr, intpr

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu May 10 08:02:28 CEST 2001

On Wed, 9 May 2001, David Firth wrote:

> Further to my earlier request for help (see below): I should have
> said what operating system and compiler I am using.
> I am working with the (mingw) g77 compiler under Windows 2000, and
> following the approach outlined in Venables & Ripley's "S
> Programming", p243.  That is, with my Fortran code in testit.f, I say
> 	g77 -O2 -c testit.f
> 	dllwrap -o testit.dll --export-all-symbols testit.o
> which works fine when I don't have any print statements in testit.f,
> but if for example I call INTPR in testit.f the dllwrap step fails
> with the complaint
> 	undefined reference to `intpr_'
> 	dllwrap: gcc exited with status 1
> Any hints will be much appreciated.  As I said earlier, I am just
> beginning with this.

You need to link against -lR.  The esiest way is to use a small package and
install that.   It will make libR.a (in .../src/gnuwin32) as needed,
or you can run make libR.a there.

If that is not enough of a hint we can talk directly.

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