[R] gcc.exe: unrecognized option `-shared' encountered (building R on Windows)
Neil Osborne
nc_osborne at hotmail.com
Wed May 30 23:04:54 CEST 2001
Dear All,
I've followed all the instructions in the documentation for building
a Windows Port of R (1.2.2). I have almost managed to get it to
build. but it falls over at the end - when its creating (I think)
the R.dll.
I'm using the MINGW binaries in conjunction with the extracted binaries from
the latest tools.zip archive.
I am running on Windows 2000
Any ideas as to what I may be doing wrong: ?
Output from console on running <make>
gcc --shared -s -mwindows -o R.dll R.def R1.a libmain.a libappl.a
libmath.a ga.a gl.a xdr.a em.a dllversion.o -L. -lg2
c -lwsock32 -lcomctl32 -lversion
gcc.exe: unrecognized option `-shared'
ld:R.def: file format not recognized; treating as linker script
ld:R.def:1: parse error
make: *** [R.dll] Error 1
PS: Once I have managed to build R, I would like to embed it in a Java
application (the R engine that is) - using OMEGAHAT's Java extension. I
would be very grateful in hearing from anyone who has already done this (or
something similar), as its not clear to me how to build the shared R library
(is it any different from the Dll that is built when I ran make in the
gnuwin32 directory ?)
Thanks in advance for your help.
Regards
Neil
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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