[R] gcc and Windows 2000

Richards, Tom richards at upci.pitt.edu
Mon Oct 15 20:53:48 CEST 2001


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



More information about the R-help mailing list