<div dir="ltr">Hi Dirk,<div><br></div><div>Thanks for your email. </div><div><br></div><div>I forgot to mention that I am using Rtool's MinGW and the PATH variable</div><div>includes C:\Rtools\bin and C:\Rtools\mingw_32\bin.</div><div>Also, I had to copy some dlls from the original MinGW (which is the one that I had before)</div><div>in order to be able to compile with the Rtool's MinGW. The original MinGW is not</div><div>included in the PATH variable. I am not sure if both MinGWs are the same version</div><div>or how to check that if that actually matters. </div><div><br></div><div>Best,</div><div>Jose</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-27 16:02 GMT+01:00 Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 27 November 2017 at 14:28, Jose wrote:<br>
| Hello,<br>
|<br>
| I am trying to build an application that uses RInside on Windows<br>
| and I get linking problems (undefined references to RInside).<br>
| The application builds and links fine on Linux and MAC.<br>
|<br>
| I tried to link against both libRinside.a and libRinside.dll. The linking<br>
| paths are correct and I am also linking against R, blas and lapack (DLLs<br>
| though).<br>
| In my installation of R 3.4 in Windows I only see DLLs for R, blas and<br>
| lapack.<br>
| Am I supposed to build R myself so to obtain the .lib or .a files?<br>
|<br>
| I use CMake and I used the examples on the RInside repository as a<br>
| reference.<br>
| I am trying to build it with MinGW32 (Windows 10).<br>
|<br>
| Has anybody used RInside in Windows? Am I missing something? Thanks for the<br>
| help.<br>
<br>
</span>Yes of course. See the CRAN checks.<br>
<br>
The key point, of course, is that _you need Rtools_ and not any random MinGW<br>
compiler you may have.  Sort your ${PATH} accordingly and everyhting should work.<br>
<br>
Dirk<br>
<br>
| Best,<br>
| Jose<br>
| ______________________________<wbr>_________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-<wbr>project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/rcpp-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div>