[Rcpp-devel] RInside and MinGW (Windows)

Jose jc.fernandez.navarro at gmail.com
Mon Nov 27 17:22:31 CET 2017


Hi Dirk,

Thanks for your email.

I forgot to mention that I am using Rtool's MinGW and the PATH variable
includes C:\Rtools\bin and C:\Rtools\mingw_32\bin.
Also, I had to copy some dlls from the original MinGW (which is the one
that I had before)
in order to be able to compile with the Rtool's MinGW. The original MinGW
is not
included in the PATH variable. I am not sure if both MinGWs are the same
version
or how to check that if that actually matters.

Best,
Jose





2017-11-27 16:02 GMT+01:00 Dirk Eddelbuettel <edd at debian.org>:

>
> On 27 November 2017 at 14:28, Jose wrote:
> | Hello,
> |
> | I am trying to build an application that uses RInside on Windows
> | and I get linking problems (undefined references to RInside).
> | The application builds and links fine on Linux and MAC.
> |
> | I tried to link against both libRinside.a and libRinside.dll. The linking
> | paths are correct and I am also linking against R, blas and lapack (DLLs
> | though).
> | In my installation of R 3.4 in Windows I only see DLLs for R, blas and
> | lapack.
> | Am I supposed to build R myself so to obtain the .lib or .a files?
> |
> | I use CMake and I used the examples on the RInside repository as a
> | reference.
> | I am trying to build it with MinGW32 (Windows 10).
> |
> | Has anybody used RInside in Windows? Am I missing something? Thanks for
> the
> | help.
>
> Yes of course. See the CRAN checks.
>
> The key point, of course, is that _you need Rtools_ and not any random
> MinGW
> compiler you may have.  Sort your ${PATH} accordingly and everyhting
> should work.
>
> Dirk
>
> | Best,
> | Jose
> | _______________________________________________
> | 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
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20171127/7f9af583/attachment.html>


More information about the Rcpp-devel mailing list