[R] gcc and Windows 2000

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Oct 16 18:22:08 CEST 2001


We build R's distribution under Windows 2000. There is a corrupt version
of mingw-1.0.1 on the source site (and also a correct one).  Get -1.1
instead, to avoid the confusion.


On Mon, 15 Oct 2001, Richards, Tom wrote:

> Hello:
>
> 	After using R,
>
> > version
>          _
> platform i386-pc-mingw32
> arch     x86
> os       Win32
> system   x86, Win32
> status
> major    1
> minor    3.1
> year     2001
> month    08
> day      31
> language R
>
> on NT 4.0 for some time, I have now received a new machine at work with
> Windows 2000 on it.  Has anyone been able to use the MINGW32 port of gcc
> successfully under Windows 2000?  Under NT 4.0 I had been using these
> commands
>
> gcc -O2 -c %FNAME%.c -IC:\Rw1031\src\include
> -IC:\Mingw-1.0.1-20010726\include
> dlltool --export-all-symbols --output-def %FNAME%.def %FNAME%.o
> gcc --shared -o ..\libs\%FNAME%.dll %FNAME%.def %FNAME%.o
> -LC:/Rw1031/src/gnuwin32 -lR
>
> and setting FNAME accordingly.  These commands worked perfectly yesterday
> under NT 4.0.  Now, the first two work OK, but the third yields the
> following
>
> ld: -shared not supported
>
> and when I remove the switch --shared I get
>
> ld: cannot open crt2.o: No such file or directory
>
> Note that the directory where the development snapshot is installed is in my
> path, as
>
> C:\Mingw-1.0.1-20010726\bin
>
> just as I used to use under NT 4.0.  I don't know what to try next, and I

One has gw, the other GW.  GW is the correct one.

> need to make DLL's for use with R 1.3.1.  Can anyone help me with this
> problem?  Thanks in advance.
>
> Tom Richards
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

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