[R] Rcmd SHLIB under NT

Richards, Tom richards at upci.pitt.edu
Tue Aug 13 14:03:51 CEST 2002


Hello:

	I'm trying to use Rcmd SHLIB to compile a single file, sann.c, to
get sann.dll.
I was able to get

make libR.a

to work, after going into MkRules and changing the line

DLLTOOL=$(BINPREF)dlltool -k --as $(AS)

to read

DLLTOOL=C:/MINGW-1.1/bin/dlltool -k --as $(AS)

But now I get:

C:\rw1051\src\gnuwin32>Rcmd SHLIB sann.c

make: make: Command not found
make: *** [libR] Error 127

My path is as follows:

C:\rw1051\src\gnuwin32>path
PATH="C:\Rtools\";C:\Mingw-1.1\bin;C:\Perl\bin;"C:\Rw1051\bin";C:\WINNT\syst
em32
;C:\WINNT;"D:\Program Files\Hummingbird\Connectivity\7.00\Accessories\";

Thus far in my life the only way I've been able to compile C code for R is
with the commands:

gcc -O2 -c %FNAME%.c -IC:\Rw1051\src\include -IC:\Mingw-1.1\include
dlltool --export-all-symbols --output-def %FNAME%.def %FNAME%.o
gcc -shared -o ..\libs\%FNAME%.dll %FNAME%.def %FNAME%.o
-LC:/Rw1051/src/gnuwin32 -lR

Is there some reason that only my computer cannot find make when I try
SHLIB?  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