<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Thanks for your quick reply!</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Indeed, the file you described within <font face="monospace">RcppGSL\examples\RcppGSLExample\src</font> looks as follows:<br><br></div><span class="im" style="font-family:arial,sans-serif;font-size:13px"><font face="monospace"><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">## This assumes that the LIB_GSL variable points to working GSL libraries</span><br></font></span><div style="font-family:arial,sans-serif;font-size:13px"><font face="monospace"><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">PKG_CPPFLA</span><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">GS=-I$(L</span><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">IB_GSL)/include</span><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><font face="monospace">PKG_LIBS=-L$(LIB_GSL)/lib -lgsl -lgslcblas</font></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">I can now simply replace </font><font face="monospace">LIB_GSL</font><font face="arial, helvetica, sans-serif"> by the path where my GSL folder is located?</font></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></span></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">And when I define a new function (outside RcppGSLExample), which Makevars.win file is then queried? (since there is also a makevars.win file in RcppGSL\skeleton; I should update this as well?)</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">Thanks</span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 3:32 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Devin,<br>
<span class=""><br>
On 12 November 2014 at 15:13, Devin Heer wrote:<br>
| Thus, I would really like to get the RcppGSL package up and running. I have<br>
| downloaded the GSL library and saved it in the same folder where the header<br>
| file Rcpp.h is located (I assume this is the default place RcppGSL is looking<br>
| for header- and source files). <br>
<br>
</span>Nope. See below.<br>
<span class=""><br>
| For test purposes, I try to compile the following (copied from r-bloggers):<br>
<br>
</span>[...]<br>
<br>
| c:/rbuildtools/3.1/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../<br>
| i686-w64-mingw32/bin/ld.exe: cannot find -lgsl<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
You need to communicate to your systeh where GSL is.<br>
<br>
Linux and OS X do that by querying the gsl-config script.<br>
<br>
Windows does that by querying the environment variable LIB_GSL, see src/Makevars.win<br>
and this comment:<br>
<br>
## This assumes that the LIB_GSL variable points to working GSL libraries<br>
<br>
The RcppGSL package comes with its test package examples/RcppGSLExample -- I<br>
would recommend trying to build that first.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" 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>