Need some help for building R!
Kenneth Cabrera <krcabrer at epm.net.co> writes:
gcc --shared -s -mwindows -o R.dll R.def R.a malloc.o libmain.a libappl.a libmath.a ga.a gl.a xdr.a em.a dllversion.o -L. -lg2c -lwsock32 -lcomctl32 -lversion ----------------------------------------------------------------------------------------------------------------------------------------- Then it stops with this error: ------------------------------------------------------------------------------------------------------------------------------------------ gcc: unrecognized option '-shared'
Hmm. Some stuff in MkRules has been changed:
--- src/gnuwin32/MkRules 2001/02/03 20:11:37 1.26.2.1
+++ src/gnuwin32/MkRules 2001/02/08 07:25:59 1.29
@@ -3,8 +3,6 @@
# Alternatives CYGWIN (-mno-cygwin), MINGW32 (mingw32 gcc), CROSS (Linux)
BUILD=MINGW32
-# Set this to YES if you use MINGW32 and gcc-2.95.2.1 or later, or cygwin-1.1.
-HAVE_SHARED=YES
# Where does 'HTML Help Workshop' live? (unused if compiled HTML help is
# not requested. Spaces allowed.)
@@ -88,16 +86,7 @@
$(NM) $^ > Defs
$(SED) -n '/^........ [BCDRT] _/s/^........ [BCDRT] _/ /p' Defs >> $*.def
$(RM) Defs
-ifeq ($(strip $(HAVE_SHARED)),YES)
$(DLL) --shared $(DLLFLAGS) $($*-DLLFLAGS) -o $@ $*.def $^ $($*-DLLLIBS) $(DLLLIBS)
-else
- $(DLL) -mdll -Wl,--base-file,$*.b $(DLLFLAGS) $($*-DLLFLAGS) -o $@ $^ $
...
ld:R.def: file format not recognized; treating as linker script ld:R.def:1: parse error F:\GCC-29~1.2\BIN\MAKE.EXE: *** [R.dll] Error 1
^^^^^^ Are you sure you are using the appropriate compiler? Looks like support for compilers before gcc-2.95.2.1 has gone away. (The flag looks a bit dodgy though. Isn't it normally "-shared" with a single hyphen?) Anyway, Brian will know...
What is my mistake? (Remember that the process work with the previous version 1.2.2)
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._