[R] Rcmd SHLIB under NT
Uwe Ligges
ligges at statistik.uni-dortmund.de
Sat Aug 17 18:30:34 CEST 2002
"Richards, Tom" wrote:
>
> 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)
Did you change it in an appropriate editor that does NOT convert Unix
line breaks to Windows line breaks? In any other way you may run into
some problems.
> 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\";
Your path statement MUST NOT end with a ";" or your OS won't find
anything in those paths (at least on WinNT).
> 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.
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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