<div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><span style="font-family:'Open Sans'">I am using R2.15.1 installed using windows binary file and would like to compile some RInside examples. I have set up the compiler and linker directory following the previous posts. Then I used Cygwin 1.7.16 to make the Makefile.win, there is a compiling error regarding the missing <span style="font-weight:bold;background-color:rgb(255,255,153)">RInterface</span>.h file. I have tried to copy the <span style="font-weight:bold;background-color:rgb(255,255,153)">RInterface</span>.h file from the R distributed source code into the INCLUDE folder. But it seems that the header file works only under unix, not a fit for the windows system. Following are the compiler errors after replace the </span><span style="font-family:'Open Sans';font-weight:bold;background-color:rgb(255,255,153)">RInterface</span><span style="font-family:'Open Sans'">.h.</span></div>
<div style="background-color:rgb(255,255,255)"><div><font color="#222222" face="Open Sans"><br></font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x74): undefined reference to `__imp___iob'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x9c): undefined reference to `__imp___iob'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xb4): undefined reference to `__imp___iob'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xcc): undefined reference to `__imp___iob'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xdc): undefined reference to `__imp___iob'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x39c): undefined reference to `___gxx_personality_sj0'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x3bb): undefined reference to `__Unwind_SjLj_Register'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x419): undefined reference to `__Unwind_SjLj_Unregister'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x471): undefined reference to `__Unwind_SjLj_Resume'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x4cc): undefined reference to `___gxx_personality_sj0'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x4eb): undefined reference to `__Unwind_SjLj_Register'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x52c): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x608): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x64c): undefined reference to `__Unwind_SjLj_Unregister'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x746): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x7f6): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x84c): undefined reference to `___gxx_personality_sj0'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x86b): undefined reference to `__Unwind_SjLj_Register'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x8c6): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x9c5): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x9ec): undefined reference to `___gxx_personality_sj0'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xa0b): undefined reference to `__Unwind_SjLj_Register'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xa3a): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xb34): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xb5c): undefined reference to `___gxx_personality_sj0'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xb7b): undefined reference to `__Unwind_SjLj_Register'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xbc6): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xd1e): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xd6b): undefined reference to `___chkstk_ms'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xd82): undefined reference to `___gxx_personality_sj0'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xdb3): undefined reference to `__Unwind_SjLj_Register'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xf8e): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0xfb0): undefined reference to `__CRT_MT'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x1150): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x1187): undefined reference to `__CRT_MT'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x11be): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x14a4): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x14d5): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x16c0): undefined reference to `__Unwind_SjLj_Resume'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x16ef): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x1b64): undefined reference to `___gxx_personality_sj0'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x1b8c): undefined reference to `__Unwind_SjLj_Register'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x20a9): undefined reference to `__CRT_MT'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2183): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x21de): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x22b1): undefined reference to `__CRT_MT'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2414): undefined reference to `__Unwind_SjLj_Resume'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x245f): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2583): undefined reference to `__Unwind_SjLj_Resume'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x25c3): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x25ff): undefined reference to `__Unwind_SjLj_Resume'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2638): more undefined references to `__Unwind_SjLj_Resume' follow</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2670): undefined reference to `___gxx_personality_sj0'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2692): undefined reference to `__Unwind_SjLj_Register'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x26f7): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2746): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x275c): undefined reference to `___gxx_personality_sj0'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x277b): undefined reference to `__Unwind_SjLj_Register'</font></div><div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x27e2): undefined reference to `__Unwind_SjLj_Unregister'</font></div>
<div><font color="#222222" face="Open Sans">C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:(.text+0x2831): undefined reference to `__Unwind_SjLj_Resume'</font></div><div><font color="#222222" face="Open Sans">/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o): bad reloc address 0x0 in section `.data'</font><span style="color:rgb(34,34,34);font-family:'Open Sans'">collect2: ld returned 1 exit status</span></div>
<div style="color:rgb(34,34,34)"><br></div><font face="Open Sans" style="color:rgb(34,34,34)">Any comment is appreciated.</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-family:'Open Sans'">Thanks,</span></div><span class="HOEnZb" style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font color="#888888"><div><span style="font-family:'Open Sans'"> </span></div>
<div><font face="Open Sans">Jian</font></div></font></span>