[Rcpp-devel] RInterface.h missing in the windows

Prasanna Kumar Nelam prasannakumar.n at imimobile.com
Mon Oct 1 11:55:10 CEST 2012


Hi,

I also facing the same issue, I have installed Rtools and changed the Path.
After that, also I am facing the same issue.

Thanks in advance for help.




Prasanna Kumar.N,

 

-----Original Message-----
From: rcpp-devel-bounces at lists.r-forge.r-project.org
[mailto:rcpp-devel-bounces at lists.r-forge.r-project.org] On Behalf Of Dirk
Eddelbuettel
Sent: Monday, August 13, 2012 12:02 AM
To: Jian Lu
Cc: rcpp-devel at lists.r-forge.r-project.org
Subject: Re: [Rcpp-devel] RInterface.h missing in the windows


On 12 August 2012 at 14:19, Jian Lu wrote:
| 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

What made you think you could use Cygwin?

| Makefile.win, there is a compiling error regarding the
missing RInterface.h
| file. I have tried to copy the RInterface.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 RInterface.h.
| 
| C:/R/R2.15.1/library/RInside/lib/i386/libRInside.a(RInside.o):RInside.cpp:
| (.text+0x74): undefined reference to `__imp___iob'

[ ... many similar lines deleted ... ]

| /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'collect2: ld returned 1 exit status

Obvious linking error, telling you that you are doing it wrong.

Developing with R on Windows is tedious, as you have to play by the rules:

  - install RTools, make sure PATH etc are correct

  - open a cmd.com window (or, equally, an MSys/MinGW window alloing you a
    bash shell, but be carefule about $path here too) 

  - run 'make -f Makefile.win'

That works, and is supported. For everything else, you are on your own. That
includes Cygwin builds.

Dirk

| Any comment is appreciated.
| Thanks,
|  
| Jian
| 
| ----------------------------------------------------------------------
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel




More information about the Rcpp-devel mailing list