Neil Osborne
2001-May-30 21:04 UTC
[R] gcc.exe: unrecognized option `-shared' encountered (building R on Windows)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian D Ripley
2001-May-31 06:30 UTC
[R] gcc.exe: unrecognized option `-shared' encountered (building R on Windows)
On Wed, 30 May 2001, Neil Osborne wrote:> Dear All, > > I've followed all the instructions in the documentation for buildingIt seems you haven't. The recommended compiler (see file INSTALL) does use --shared. Also, MkRules does contain a flag HAVE_SHARED which you can comment out if you have a non-recommended compiler. You also sent the comments to the maintainers (as documented) _and_ to R-help (not in the documentation).> 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.There are lots of sets of Mingw compilers, and you have too ancient a set. [...] -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._