From ripley@stats.ox.ac.uk  Wed Dec 12 13:54:29 2001
From: ripley@stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 12 Dec 2001 13:54:29 +0000 (GMT)
Subject: [Rd] RE: [R] Rcmd SHLIB problem
In-Reply-To: <51F9C42DA15CD311BD220008C707D81903DC840D@usrymx10.merck.com>
Message-ID: <Pine.LNX.4.31.0112121348350.3879-100000@gannet.stats>

On Wed, 12 Dec 2001, Liaw, Andy wrote:

> Yes, changing line 67 of SHLIB as Uwe suggested worked:
>
> C:\TEMP>Rcmd SHLIB tryf.f
> make[1]: `libR.a' is up to date.
> rm -f -f tryf.a
> ar cr tryf.a *.o
> ranlib tryf.a
> ------- Building tryf.dll from tryf.a --------
> echo LIBRARY tryf > tryf.def
> echo EXPORTS >> tryf.def
> nm tryf.a > Defs
> sed -n '/^........ [BCDRT] _/s/^........ [BCDRT] _/ /p' Defs >> tryf.def
> rm -f Defs
> gcc  --shared -s  -o tryf.dll tryf.def tryf.a  -Lc:/progra~1/R/rw1031/src/
> gnuwin32  -lg2c -Lc:/Rtools/ATLAS/lib/WinNT_PIIISSE1 -lcblas -lf77blas
> -latlas -lR
>
> Thanks very much for the (temporary) solution.  The question is, could this
> be a permanent fix?

No.  It only works for one input file.  The quotes were not there for fun!
(Also names with spaces in.)

We think this may be a perl version problem.  Uwe has build 623. I have
build 630.  Quite a few things malfunctioned with 623 for me under Windows
98.  What do you have?


-- 
Brian D. Ripley,                  ripley@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-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] RE: [R] Rcmd SHLIB problem
Prof Brian Ripley