[R] gcc and Windows 2000

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


	After using R,

> version
platform i386-pc-mingw32
arch     x86            
os       Win32          
system   x86, Win32     
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

gcc -O2 -c %FNAME%.c -IC:\Rw1031\src\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

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 


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