Skip to content

problem installing RDCOMClient on Windows 7

3 messages · Kishor Tappita, Uwe Ligges

#
Dear R-Users,

I am trying to install RDCOMClient package as it is a dependency for
installing excel.link package. I get the below error while trying to
install RDCOMClient on 64-bit Windows 7 operating system.


g++ -I"D:/R-2.10.0/include" -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.
 -Wno-deprecated    -O2 -Wall  -c RUtils.c -o RUtils.o

RUtils.c: In function 'SEXPREC* R_createRCOMUnknownObject(void*, const char*)':
RUtils.c:151:52: error: invalid conversion from 'int' to 'Rboolean'
[-fpermissive]
D:/R-2.10.0/include/Rinternals.h:692:6: error:   initializing argument
3 of 'void R_RegisterCFinalizerEx(SEXP, R_CFinalizer_t, Rboolean)'
[-fpermissive]
RUtils.c: In function 'Rboolean ISSInstanceOf(SEXP, const char*)':
RUtils.c:245:26: error: invalid conversion from 'int' to 'Rboolean'
[-fpermissive]

make: *** [RUtils.o] Error 1

Please help me to resolve this issue. RDCOMClient_0.93-0.tar.gz is the
source file that I am using. Below is my session information.
R version 2.10.0 (2009-10-26)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

Thanks,
Kishor
#
Please try with a recent version of R. Yours is 6 major updates behind....

Best,
Uwe Ligges
On 05.08.2013 16:11, Kishor Tappita wrote:
#
Dear Uwe,

Thank you for your repsonse. I installed the latest version of R
(R-3.0.1) . I get the below errors when I try to install RDCOMClient.

g++ -m32 -I"D:/R-3.0.1/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -
.    -I"d:/RCompile/CRANpkg/extralibs64/local/include"  -Wno-deprecated    -O2
Wall  -mtune=core2 -c connect.cpp -o connect.o
In file included from d:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/cstdio:
4:0,
                 from D:/R-3.0.1/include/Rinternals.h:25,
                 from D:/R-3.0.1/include/Rdefines.h:29,
                 from RUtils.h:1,
                 from connect.cpp:20:
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:573:9:
error: 'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:574:9:
error:'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:575:9:
error:'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:586:9:
error:'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:587:9: error:
'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:589:9: error:
'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:591:9: error:
'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:632:9: error:
'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:633:9: error:
'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:638:9: error:
'wint_t' does not name a type
d:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h:639:9: error:
'wint_t' does not name a type
make: *** [connect.o] Error 1
ERROR: compilation failed for package 'RDCOMClient'
* removing 'D:/R-3.0.1/library/RDCOMClient'
R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United
States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
Thanks,
Regards,
Kishor



On Mon, Aug 5, 2013 at 9:03 PM, Uwe Ligges
<ligges at statistik.tu-dortmund.de> wrote: