[Rd] Using Rtools with gcc 4.8.3
ggrothendieck at gmail.com
Sun Oct 5 13:14:49 CEST 2014
On Sun, Oct 5, 2014 at 6:51 AM, Uwe Ligges
<ligges at statistik.tu-dortmund.de> wrote:
> On 05.10.2014 12:20, Jeroen Ooms wrote:
>> I started working on some R bindings for mongo-c-driver . The C
>> library compiles fine on Ubuntu Trusty (gcc 4.8.2) and osx (clang),
>> however on my windows machine (gcc 4.6.3 from Rtools 3.1) it fails
>> with: 'INIT_ONCE_STATIC_INIT' undeclared. Google suggests that this
>> might be a problem in older versions of mingw-w64. So I grabbed a copy
>> of mingw-w64 version 4.8.3 and indeed, here the library compiles
>> without errors.
>> Now I am unsure how to make mingw 4.8.3 work with Rtools. I extracted
>> the contents of  into "C:\RBuildTools\3.1\gcc-4.8.3\" and my
>> package Makevars contains
>> CC = "c:/RBuildTools/3.1/gcc-4.8.3/bin/gcc"
>> However it seems like R still uses the old gcc 4.6.3 for R CMD
>> INSTALL. What am I doing wrong? Is there a recommended setup for
>> building packages on Windows using a Rtools but with another compiler?
>> In addition: will I be able to publish this package to CRAN, or do I
>> have to wait for Rtools to get updated with a more recent gcc?
> Currently only 4.6.3 is supported and that is the one used to build binary
> packages on CRAN. Hence you need to wait until it is updated.
> Uwe Ligges
>>  https://github.com/mongodb/mongo-c-driver
Are there any plans for this? gcc is already up to 4.9.1 and I am
sure a lot of people would like to see the latest version available as
part of Rtools.
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-devel