From edoardo.baldoni at gmail.com  Fri Jan  2 18:33:29 2015
From: edoardo.baldoni at gmail.com (Edoardo Baldoni)
Date: Fri, 2 Jan 2015 18:33:29 +0100
Subject: [Rd] Help in building R with minGW
Message-ID: <CAOcqoUM59ccz-AhG1gkngR_zox3r6VSWPosv8oQh4=v6Mt5TsQ@mail.gmail.com>

Dear R users,
I would need some help in building R using minGW in windows 8.1. After
using the command *configure *(./configure --enable-R-shlib
--with-readline=no --with-x=no), I use the command *make. *This results in
the following error:

[...]
make[2]: Leaving directory `/home/Edoardo/r-3.1.2/src/nmath'
make[2]: Entering directory `/home/Edoardo/r-3.1.2/src/unix'
make[3]: Entering directory `/home/Edoardo/r-3.1.2/src/unix'
gcc -std=gnu99 -I. -I../../src/include -I../../src/include
 -I/usr/local/include -DHAVE_CONFIG_H      -g -O2  -c dynload.c -o dynload.o
dynload.c: In function 'Rf_InitFunctionHashing':
dynload.c:69:32: warning: assignment from incompatible pointer type
[enabled by default]
     R_osDynSymbol->loadLibrary = loadLibrary;
                                ^
dynload.c:71:33: warning: assignment from incompatible pointer type
[enabled by default]
     R_osDynSymbol->closeLibrary = closeLibrary;
                                 ^
dynload.c: At top level:
dynload.c:97:13: error: conflicting types for 'closeLibrary'
 static void closeLibrary(HINSTANCE handle)
             ^
dynload.c:59:13: note: previous declaration of 'closeLibrary' was here
 static void closeLibrary(void *handle);
             ^
dynload.c:59:13: warning: 'closeLibrary' used but never defined [enabled by
default]
make[3]: *** [dynload.o] Error 1
make[3]: Leaving directory `/home/Edoardo/r-3.1.2/src/unix'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/home/Edoardo/r-3.1.2/src/unix'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/home/Edoardo/r-3.1.2/src'
make: *** [R] Error 1


I am not an expert programmer and would appreciate some help. My final
objective is to install R as shared library in order to use RHIPE.
Thanks

Edoardo

	[[alternative HTML version deleted]]



[Rd] Help in building R with minGW
Edoardo Baldoni