[Rcpp-devel] RInside and MinGW (Windows)

Dirk Eddelbuettel edd at debian.org
Mon Nov 27 16:02:53 CET 2017

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.

| 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

More information about the Rcpp-devel mailing list