Re: [R] rtools fstream error

2015-02-02 Thread sunaga
ct: Re: [R] rtools fstream error Try adding the line #define R_NO_REMAP to the top of your file (before any #include's) so the R include files don't define length(x). Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Feb 2, 2015 at 1:11 PM, < sun...@telenet.be > wrot

Re: [R] rtools fstream error

2015-02-02 Thread William Dunlap
Try adding the line #define R_NO_REMAP to the top of your file (before any #include's) so the R include files don't define length(x). Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Feb 2, 2015 at 1:11 PM, wrote: > Hi, > > when writing a simple cpp function to be run in R I obtain a comp

[R] rtools fstream error

2015-02-02 Thread sunaga
Hi, when writing a simple cpp function to be run in R I obtain a compilation error as soon as I include fstream. Any hints of what goes wrong and how to fix it? It's Windows 7 64-bit, R-3.1.2 and Rtools32. An example to recreate the error: #include #include #include using nam