<div dir="ltr">Hi, Tiago,<div><br></div><div>You need a Makevars file and I think you can use [1] for reference. You need to let R know where to find the header files and lib.</div><div><br></div><div>Best,</div><div><br></div><div>KK</div><div><br></div><div>[1] <a href="https://github.com/cran/Rglpk/blob/master/src/Makevars.win">https://github.com/cran/Rglpk/blob/master/src/Makevars.win</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 9, 2016 at 8:36 AM, Tiago Fragoso <span dir="ltr"><<a href="mailto:fragoso2718@gmail.com" target="_blank">fragoso2718@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I've been trying to use glpk with Rcpp on Windows, to no avail. Is there any way to directly link to GLPK from a C++ source file (like simply using #include <glpk.h>)?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> I am aware that there are packages that use GLPK in R (Rglpk or glpkAPI for example), but I also got no clues from their source files. Any pointers will be of great help.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks!</div><div style="font-size:12.8px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 5:19 PM, Tiago Fragoso <span dir="ltr"><<a href="mailto:mingote@gmail.com" target="_blank">mingote@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I've been trying to use glpk with Rcpp on Windows, to no avail. Is there any way to directly link to GLPK from a C++ source file (like simply using #include <glpk.h>)?</div><div><br></div><div> I am aware that there are packages that use GLPK in R (Rglpk or glpkAPI for example), but I also got no clues from their source files. Any pointers will be of great help.</div><div><br></div><div>Thanks!</div><span><font color="#888888"><div><br></div><div>Tiago</div><div><br></div><div><br></div></font></span></div>
</blockquote></div><br></div>
<br>_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-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-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Qiang Kou<div><a href="mailto:qkou@umail.iu.edu" target="_blank">qkou@umail.iu.edu</a><br><div>School of Informatics and Computing, Indiana University</div><div><br></div></div></div></div>
</div>