[R] making Rmath.dll

Thomas Stockton stockton at neptuneandco.com
Wed Apr 11 16:56:30 CEST 2001


Thanks to Prof Ripley for getting me on track.

After updating from gcc.2.95.2 to gcc.2.92.2-1 I was able to build R and then
build Rmath.dll as per the README in src/nmath/standalone.

Tom Stockton


>-----Original Message-----
>From: ripley at auk.stats [mailto:ripley at auk.stats]On Behalf Of Prof Brian
>D Ripley
>Sent: Wednesday, April 11, 2001 12:27 AM
>To: Thomas Stockton
>Cc: r-help at stat.math.ethz.ch
>Subject: Re: [R] making Rmath.dll
>
>
>On Tue, 10 Apr 2001, Thomas Stockton wrote:
>
>> R folk,
>>
>> Win2k
>> gcc-2.95.2
>> perl 5.6.0
>> R 1.2.2
>>
>> I am trying to make Rmath.dll using the instructions in README in
>> /R/src/nmath/standalone and get the following error:
>>
>> bash-2.04$ make -f Makefile.win
>> cp -p ../*.c .
>> d:/gcc-2.95.2/bin/make.exe -f Makefile.win cpy
>> make.exe[1]: Entering directory `d:/R/src/nmath/standalone'
>> cp -p ../*.c .
>> make.exe[1]: Leaving directory `d:/R/src/nmath/standalone'
>> d:/gcc-2.95.2/bin/make.exe -f Makefile.win makeMakedeps
>> make.exe[1]: Entering directory `d:/R/src/nmath/standalone'
>> making mlutils.d from mlutils.c
>> mlutils.c:21: config.h: No such file or directory
>> make.exe[1]: *** [mlutils.d] Error 1
>> make.exe[1]: Leaving directory `d:/R/src/nmath/standalone'
>> d:\gcc-2.95.2\bin\make.exe: *** [all] Error 2
>>
>> I see in mlutils.c the code causing the problem:
>>
>> #ifdef HAVE_CONFIG_H
>> # include "config.h"
>> #endif
>>
>> and in Makefile.win where HAVE_CONFIG_H is set:
>>
>> CFLAGS=$(OPTFLAGS) -I../include -DHAVE_CONFIG_H
>>
>> It would appear that I need a config.h. I see a shell script in
>> /R/src/gnuwin32/include/config.h.in which looks like a potential solution. I
>> must be missing a step but in reviewing R docs and help archives I can figure
>> out what it is.
>
>Under Windows you are expected to build R first, which installs config.h.
>I think
>
>cd .../src/gnuwin32/fixed
>make
>
>will suffice.
>
>Under Unix you need to at least configure R first.  In short, you can't
>jump into a single directory in the middle of R and expect things to work
>in isolation.
>
>
>--
>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