[Rcpp-devel] Linking to GLPK

Qiang Kou qkou at umail.iu.edu
Thu Jun 9 16:22:44 CEST 2016


Hi, Tiago,

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.

Best,

KK

[1] https://github.com/cran/Rglpk/blob/master/src/Makevars.win

On Thu, Jun 9, 2016 at 8:36 AM, Tiago Fragoso <fragoso2718 at gmail.com> wrote:

> Hello,
>
> 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>)?
>
>  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.
>
> Thanks!
>
> On Wed, Jun 8, 2016 at 5:19 PM, Tiago Fragoso <mingote at gmail.com> wrote:
>
>> Hello,
>>
>> 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>)?
>>
>>  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.
>>
>> Thanks!
>>
>> Tiago
>>
>>
>>
>
> _______________________________________________
> 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
>



-- 
Qiang Kou
qkou at umail.iu.edu
School of Informatics and Computing, Indiana University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20160609/62ea1baf/attachment.html>


More information about the Rcpp-devel mailing list